dubbo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xiaowhyyan (GitHub) <git...@apache.org>
Subject [GitHub] [incubator-dubbo] Xiaowhyyan opened issue #2590: dubbo发布http服务后 http客户端访问问题
Date Sun, 30 Sep 2018 11:56:38 GMT
你好
我这边写一个dubbo provider 发布服务为http协议
配置为
<dubbo:application name="demo-provider"/>
    <!-- use multicast registry center to export service -->
    <dubbo:registry protocol="zookeeper" address="192.168.4.105:2181" />
    <!-- use dubbo protocol to export service on port 20880 -->
    <dubbo:protocol name="dubbo" port="20880"/>
    <dubbo:protocol name="http" port="20991"/>
    <!-- service implementation, as same as regular local bean -->
    <bean id="demoService" class="com.why.Impl.UserInterImpl"/>
    <!-- declare the service interface to be exported -->
    <dubbo:service interface="com.why.jiekou.UserInter" ref="demoService" protocol="dubbo,http"/>

然后服务启动正常以后

客户端如何去往com.why.jiekou.UserInter接口发请求
UserInter接口下面方法如下
String test();
String sayHello(String name);
UserResponse zhuce(User user) throws ClassNotFoundException, SQLException;

比如如何往此接口 sayHello方法发http请求,报文格式是怎么样的?

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/2590 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
Mime
View raw message