You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Willem Jiang <ni...@iona.com> on 2007/05/17 11:08:50 UTC
Re: ?wsdl can't produce a right wsdl ,when the types are not the
same targetNamespace with the wsdl targetNamespace
Sorry, I used the firefox to get the wsdl , and it filtered the
namespace exclude the targetNamespace.
This is my fault. I will close the issue from JIRA.
Please ignore my last mail.
Willem.
Willem Jiang wrote:
> Hi,
>
> I just tried to provider CXF sample/hello_world Service to other WSDL
> consumer, and found there are some targetNameSpace errors in
> <wsdl:types> </wsdl:types>.
> Here is the part of the wsdl file
> <wsdl:definitions name="HelloWorld"
> targetNamespace="http://apache.org/hello_world_soap_http">
> <wsdl:types>
> <schema elementFormDefault="qualified"
> targetNamespace="http://apache.org/hello_world_soap_http/types">
> <simpleType name="MyStringType">
> <restriction base="string">
> <maxLength value="30"/>
> </restriction>
> </simpleType>
>
> <element name="sayHi">
> <complexType/>
> </element>
> <element name="sayHiResponse">
> <complexType>
> <sequence>
> <element name="responseType" type="string"/>
> </sequence>
> </complexType>
> </element>
> .......
> </wsdl:types>
>
> .......
> <wsdl:message name="sayHiResponse">
> <wsdl:part element="x1:sayHiResponse" name="out">
> ~~~~~~
> </wsdl:part>
> </wsdl:message>
> <wsdl:portType name="Greeter">
> <wsdl:operation name="sayHi">
> <wsdl:input message="tns:sayHiRequest" name="sayHiRequest">
> </wsdl:input>
> <wsdl:output message="tns:sayHiResponse" name="sayHiResponse">
> </wsdl:output>
> </wsdl:operation>
> .......
> </wsdl:portType>
> ....
>
> If the schema's targetNamespace is not same with the wsdl
> tragetNamespace, the message part will get invalided QName.
> I know ?wsdl will generate a wsdl from the service model, it must be a
> bug of service model to wsdl .
>
> I had filled a JIRA[1] for it.
>
> [1] http://issues.apache.org/jira/browse/CXF-657
>
> Willem.
>
>
>
>
>