Hello,

I've got a Java-first SOAP service using cxf 2.5, JAX-WS frontend and JAXB
databinding.  I've generated a wsdl with java2wsdl.

Now I'm trying to build a simple .Net client against that wsdl using their
wsdl.exe utility.  However, I'm getting an Unmarshalling error from JAXB
because the .NET client is incorrectly qualifying the parameters (and
expecting the response to be qualified as well).

Here is the relevant part of the simple wsdl:

<xs:schema *attributeFormDefault="unqualified"
elementFormDefault="unqualified"* targetNamespace="
http://ws.rnt.basistech.com"; version="1.0" xmlns:tns="
http://ws.rnt.basistech.com"; xmlns:xs="http://www.w3.org/2001/XMLSchema";>
  <xs:element name="echo" type="tns:echo"/>
  <xs:element name="echoResponse" type="tns:echoResponse"/>
  <xs:complexType name="echo">
    <xs:sequence>
      <xs:element minOccurs="0" name="input" type="xs:string"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="echoResponse">
    <xs:sequence>
      <xs:element minOccurs="0" name="return" type="xs:string"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>

Here is the SOAP message sent from the .NET client:

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/";>
      <soap:Body>
         <echo *xmlns="http://ws.rnt.basistech.com"*>
            <input>Hello Service!</input>
         </echo>
      </soap:Body>
   </soap:Envelope>

Now if I specifically add 'form="unqualified"' to the parameter and return
elements in the wsdl, the .NET correctly adds the extra code to the
generated client and everything works fine.

Is there any way I can get those 'form="unqualified"' into the wsdl
generated by wsdl2java using JAXB or JAX-WS annotations?

Thanks, Brian

Reply via email to