dubbo如何调用hessian或webservice协议暴露的接口??求大神帮助

侯刚 发布于 2014/11/06 09:26
阅读 9K+
收藏 1

【Gopher China万字分享】华为云的Go语言云原生实战经验!>>>

服务地址:hessian://192.168.1.156:8086/com.houg.webservice.service.ComputeService?anyhost=true&application=calculator-app&default.timeout=5000&dubbo=2.5.3&dynamic=true&interface=com.houg.webservice.service.ComputeService&methods=distance,createPoint,add&pid=6296&server=servlet&side=provider×tamp=1415233477799

调用代码:

@Reference(url="hessian://192.168.1.156:8086/com.houg.webservice.service.ComputeService")
private ComputeService computeService;

报错:

com.alibaba.dubbo.rpc.RpcException: Failed to invoke remote service: interface com.houg.webservice.service.ComputeService, method: add, cause: HessianProxy cannot connect to 'http://192.168.1.156:8086/com.houg.webservice.service.ComputeService?application=calculator-app&default.timeout=5000&dubbo=2.5.3&interface=com.houg.webservice.service.ComputeService&methods=distance,createPoint,add&pid=3572&side=consumer×tamp=1415237147723

加载中
返回顶部
顶部