dubbo2.0.5以后版本提供了在线调用的方式,极大的方便了调试阶段
连接提供方
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| [nobody@aliyun-APP-121-4 ~]$ telnet 127.0.0.1 8888 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. ls me.changjie.template.api.AAAService dubbo>ls me.changjie.template.api.AAAService deleteMyHaibao queryWatermark transformOldWaimaiHaibao queryMyPosterByCondition querySystemPoster queryMyCollectionHaibao queryHaibaoCategory queryHaibaoById queryMyHaibao queryMyCollections collectHaibao useHaibao transformOldHaibao queryHaibao dubbo>
|
invoke调用
请求参数是对象
1
| void submitHotTitleTask(HotTitleRequest request) throws Exception;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| public class HotTitleRequest implements Serializable {
private String taobaoNick;
private String keyword;
public String getTaobaoNick() { return taobaoNick; }
public void setTaobaoNick(String taobaoNick) { this.taobaoNick = taobaoNick; }
public String getKeyword() { return keyword; }
public void setKeyword(String keyword) { this.keyword = keyword; } }
|
1 2 3 4 5 6 7 8
| invoke me.changjie.qnrank.service.BBBService.submitHotTitleTask ( { "taobaoNick":"changjie", "keyword":"踏板", "class":"me.changjie.qnrank.vo.request.HotTitleRequest" } )
|
请求参数是复杂对象
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| invoke me.changjie.AAAService.querySystemPoster ( { "haibaoUser": { "appKey":"21470813", "subAppKey":"44782", "class":"me.changjie.domain.HaibaoUser" }, "pageNo":"1", "pageSize":"10", "orderBy":"defaultOrder", "desc":"true", "imageGroupType":"PRICE_WATERMARK", "class":"me.changjie.domain.request.SystemPosterRequest" } )
|
多个请求参数
1
| ImageResponse queryHaibaoById(HaibaoUser haibaoUser, String imageId, String type);
|
1 2 3 4 5 6 7 8 9 10
| invoke me.changjie.AAAService.queryHaibaoById ( { "appKey":"12011554", "subAppKey":"32644", "class":"me.changjie.domain.HaibaoUser" }, "3613", "sm" )
|