kimmking commented on issue #1560: Dubbo multi-protocol, dubbo & webservice 
protocol to publish service,when startup fail to init webservice bean
URL: 
https://github.com/apache/incubator-dubbo/issues/1560#issuecomment-379479046
 
 
   @rongmin you can use the latest version by packaging from the master code.
   1. then you can add ws protocol to a xml file just like:
    
incubator-dubbo\dubbo-test\dubbo-test-`examples\src\main\java\com\alibaba\dubbo\examples\generic\generic-provider.xml`
   
   `
   <dubbo:application name="generic-generic"/>
   
       <dubbo:registry address="multicast://224.5.6.7:1234"/>
   
       <dubbo:protocol name="dubbo" port="20880"/>
       <dubbo:protocol name="webservice" port="10880"/>
   
       <bean id="userserviceimpl" 
class="com.alibaba.dubbo.examples.generic.impl.UserServiceImpl"/>
   
       <dubbo:service 
interface="com.alibaba.dubbo.examples.generic.api.IUserService" 
ref="userserviceimpl" protocol="dubbo,webservice">
       </dubbo:service>
   `
   2. run  
`git\incubator-dubbo\dubbo-test\dubbo-test-examples\src\main\java\com\alibaba\dubbo\examples\generic\GenericProvider.java`
  as an application in your IDE.
   3. and then visit a WSDL from URL:
   
http://192.168.123.102:10880/com.alibaba.dubbo.examples.generic.api.IUserService?WSDL
   4. you will find WS work well, the ref CXF version is 3.0.4 now.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to