- [ yes] I have searched the [issues](https://github.com/apache/dubbo/issues) 
of this repository and believe that this is not a duplicate.
- [ yes] I have checked the 
[FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository 
and believe that this is not a duplicate.

### Environment

* Dubbo version: 2.7.2
* Operating System version: windows 10 / CentOS release 6.9 (Final)
* Java version: Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode)

### Steps to reproduce this issue

1. use cxf 3.0.14 artifacts(core,frontend-simple,transports-http,binding,wsdl) 
as webservice lib 
2. define webservice protocol and services in dubbo provider xml file
3. start the project
4. use web browser to view wsdl file


### Expected Result
The wsdl file should content address element like the following:
`This XML file does not appear to have any style information associated with 
it. The document tree is shown below.
<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:tns="http://open.service.interfaces.sunshine.com/"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:ns1="http://schemas.xmlsoap.org/soap/http"; name="YCTOpenService" 
targetNamespace="http://open.service.interfaces.sunshine.com/";>
<wsdl:types>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns="http://open.service.interfaces.sunshine.com/"; 
attributeFormDefault="unqualified" elementFormDefault="unqualified" 
targetNamespace="http://open.service.interfaces.sunshine.com/";>
<xs:complexType name="request">
<xs:sequence>
<xs:element minOccurs="0" name="methodCode" type="xs:string"/>
<xs:element minOccurs="0" name="methodParams" type="xs:string"/>
<xs:element minOccurs="0" name="responseType" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="response">
<xs:sequence>
<xs:element minOccurs="0" name="result" type="xs:string"/>
<xs:element minOccurs="0" name="resultCode" type="xs:string"/>
<xs:element minOccurs="0" name="resultMessage" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="openService" type="openService"/>
<xs:complexType name="openService">
<xs:sequence>
<xs:element minOccurs="0" name="arg0" type="request"/>
</xs:sequence>
</xs:complexType>
<xs:element name="openServiceResponse" type="openServiceResponse"/>
<xs:complexType name="openServiceResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="response"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
</wsdl:types>
<wsdl:message name="openService">
<wsdl:part element="tns:openService" name="parameters"> </wsdl:part>
</wsdl:message>
<wsdl:message name="openServiceResponse">
<wsdl:part element="tns:openServiceResponse" name="parameters"> </wsdl:part>
</wsdl:message>
<wsdl:portType name="YCTOpenServicePortType">
<wsdl:operation name="openService">
<wsdl:input message="tns:openService" name="openService"> </wsdl:input>
<wsdl:output message="tns:openServiceResponse" name="openServiceResponse"> 
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="YCTOpenServiceSoapBinding" 
type="tns:YCTOpenServicePortType">
<soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="openService">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="openService">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="openServiceResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="YCTOpenService">
<wsdl:port binding="tns:YCTOpenServiceSoapBinding" name="YCTOpenServicePort">
<soap:address 
location="http://localhost:30889/services/com.sunshine.interfaces.service.open.YCTOpenService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>`

### Actual Result
The wsdl address element is missing!
`This XML file does not appear to have any style information associated with 
it. The document tree is shown below.
<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:tns="http://open.service.interfaces.sunshine.com/"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:ns1="http://schemas.xmlsoap.org/soap/http"; name="YCTOpenService" 
targetNamespace="http://open.service.interfaces.sunshine.com/";>
<wsdl:types>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns="http://open.service.interfaces.sunshine.com/"; 
attributeFormDefault="unqualified" elementFormDefault="unqualified" 
targetNamespace="http://open.service.interfaces.sunshine.com/";>
<xs:complexType name="request">
<xs:sequence>
<xs:element minOccurs="0" name="methodCode" type="xs:string"/>
<xs:element minOccurs="0" name="methodParams" type="xs:string"/>
<xs:element minOccurs="0" name="responseType" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="response">
<xs:sequence>
<xs:element minOccurs="0" name="result" type="xs:string"/>
<xs:element minOccurs="0" name="resultCode" type="xs:string"/>
<xs:element minOccurs="0" name="resultMessage" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="openService" type="openService"/>
<xs:complexType name="openService">
<xs:sequence>
<xs:element minOccurs="0" name="arg0" type="request"/>
</xs:sequence>
</xs:complexType>
<xs:element name="openServiceResponse" type="openServiceResponse"/>
<xs:complexType name="openServiceResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="response"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
</wsdl:types>
<wsdl:message name="openService">
<wsdl:part element="tns:openService" name="parameters"> </wsdl:part>
</wsdl:message>
<wsdl:message name="openServiceResponse">
<wsdl:part element="tns:openServiceResponse" name="parameters"> </wsdl:part>
</wsdl:message>
<wsdl:portType name="YCTOpenServicePortType">
<wsdl:operation name="openService">
<wsdl:input message="tns:openService" name="openService"> </wsdl:input>
<wsdl:output message="tns:openServiceResponse" name="openServiceResponse"> 
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="YCTOpenServiceSoapBinding" 
type="tns:YCTOpenServicePortType">
<soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="openService">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="openService">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="openServiceResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="YCTOpenService">
<wsdl:port binding="tns:YCTOpenServiceSoapBinding" name="YCTOpenServicePort"> 
</wsdl:port>
</wsdl:service>
</wsdl:definitions>`
 


[ Full content available at: https://github.com/apache/dubbo/issues/5140 ]
This message was relayed via gitbox.apache.org for 
[email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to