指令行調用dubbo遠端服務
telnet遠端連接配接到dubbo
telnet 127.0.0.1 20880
檢視提供服務的接口
dubbo>ls
com.test.service.TestInfoQueryService
ls 接口名對外提供的方法
dubbo>ls com.test.service.TestInfoQueryService
queryByInfoCode
queryInfo
調用服務
invoke 接口名.方法名(參數) 進行調用
dubbo>invoke com.test.service.TestInfoQueryService.queryByInfoCode("00000A0")
{"result":{"infoCode":"info0","stat":"001","ip":"192.168.1.0","infoOwncode":"自編号0","phone":"13600000","infoAreaCode":"12345","address":"位址0","date":"2017-01-22 00:00:00","addressType":"0001","name":"名稱0","id":14001,"contacts":"聯系人0","infoCode":"00000A0"},"errorCode":"INFOCODE000000","errorMsg":"擷取資訊成功。"}
elapsed: 12 ms.