cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <>
Subject ?wsdl can't produce a right wsdl ,when the types are not the same targetNamespace with the wsdl targetNamespace
Date Thu, 17 May 2007 06:25:30 GMT

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" 
    <schema elementFormDefault="qualified" 
        <simpleType name="MyStringType">
            <restriction base="string">
                <maxLength value="30"/>

        <element name="sayHi">
                    <element name="sayHiResponse">
                    <element name="responseType" type="string"/>

    <wsdl:message name="sayHiResponse">
            <wsdl:part element="x1:sayHiResponse" name="out">
    <wsdl:portType name="Greeter">
    <wsdl:operation name="sayHi">
        <wsdl:input message="tns:sayHiRequest" name="sayHiRequest">
    <wsdl:output message="tns:sayHiResponse" name="sayHiResponse">

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.




View raw message