dubbo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] lixiaguang commented on issue #1585: How to use standard cxf client to invoke Dubbo Webservice?
Date Thu, 12 Apr 2018 05:09:04 GMT
lixiaguang commented on issue #1585: How to use standard cxf client to invoke Dubbo Webservice?
URL: https://github.com/apache/incubator-dubbo/issues/1585#issuecomment-380679730
 
 
   yes,it's missing endpoint address. provide configuration is here. How to add endpoint address?
use annotation or user configution?
   -------------------------------
       <dubbo:application name="dataservice-provider-app"/> 
       <dubbo:registry protocol="zookeeper" address="10.212.141.40:2181,10.212.141.41:2181,10.212.141.39:2181"
 group="dubbo" /> 
       <dubbo:protocol name="dubbo" port="20880"  /> 
       <dubbo:protocol name="webservice" port="8080" server="servlet" contextpath="webservices"
/>
       <dubbo:service interface="com.test.TestService" ref="testService" protocol="dubbo,webservice"
timeout="1200000"  />
       <bean id="testService" class="com.test.TestServiceImpl" />
   
   
   here is wsdl
   -----------------------------
   <?xml version='1.0' encoding='UTF-8'?>
   <wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://test.com/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http"
name="TestService" targetNamespace="http://test.com/">
     <wsdl:types>
   <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://test.com/"
attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://test.com/">
     <xsd:element name="getUserInfo" type="tns:getUserInfo"/>
     <xsd:complexType name="getUserInfo">
       <xsd:sequence>
         <xsd:element minOccurs="0" name="arg0" type="xsd:string"/>
       </xsd:sequence>
     </xsd:complexType>
     <xsd:element name="getUserInfoResponse" type="tns:getUserInfoResponse"/>
     <xsd:complexType name="getUserInfoResponse">
       <xsd:sequence>
         <xsd:element minOccurs="0" name="return" type="xsd:string"/>
       </xsd:sequence>
     </xsd:complexType>
   </xsd:schema>
     </wsdl:types>
     <wsdl:message name="getUserInfo">
       <wsdl:part element="tns:getUserInfo" name="parameters">
       </wsdl:part>
     </wsdl:message>
     <wsdl:message name="getUserInfoResponse">
       <wsdl:part element="tns:getUserInfoResponse" name="parameters">
       </wsdl:part>
     </wsdl:message>
     <wsdl:portType name="TestServicePortType">
       <wsdl:operation name="getUserInfo">
         <wsdl:input message="tns:getUserInfo" name="getUserInfo">
       </wsdl:input>
         <wsdl:output message="tns:getUserInfoResponse" name="getUserInfoResponse">
       </wsdl:output>
       </wsdl:operation>
     </wsdl:portType>
     <wsdl:binding name="TestServiceSoapBinding" type="tns:TestServicePortType">
       <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
       <wsdl:operation name="getUserInfo">
         <soap:operation soapAction="" style="document"/>
         <wsdl:input name="getUserInfo">
           <soap:body use="literal"/>
         </wsdl:input>
         <wsdl:output name="getUserInfoResponse">
           <soap:body use="literal"/>
         </wsdl:output>
       </wsdl:operation>
     </wsdl:binding>
     <wsdl:service name="TestService">
       <wsdl:port binding="tns:TestServiceSoapBinding" name="TestServicePort">
       </wsdl:port>
     </wsdl:service>
   </wsdl:definitions>

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message