Hi everyone,

I use Wsdl2Java (cxf-2.4.3) to create Java classes from wsdl (wsdl file is
attached).
I have 2 operations which actually has the same structure and differs only
by the names.
In the  results : for one operation it generates wrapped style class for
another - unwrapped.
I tried to use option in the wsdl:
    <jaxws:bindings xmlns:jaxws="http://java.sun.com/xml/ns/jaxws";>
        <jaxws:enableWrapperStyle>...</jaxws:enableWrapperStyle>
    </jaxws:bindings>
but it doesn't help.

Why they differs? I want to have both in non-wrapper style...
Is it a bug or I misunderstand something?

Thank you!

Anton
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:tns="http://footballpool.dataaccess.eu"; name="Info" targetNamespace="http://footballpool.dataaccess.eu";>
  <types>
    <xs:schema elementFormDefault="qualified" targetNamespace="http://footballpool.dataaccess.eu";>
	
	<xs:complexType name="ArrayOfStrings">
        <xs:sequence>
          <xs:element maxOccurs="unbounded" minOccurs="0" name="string" nillable="true" type="xs:string"/>
        </xs:sequence>
      </xs:complexType>
 
     <xs:element name="Coaches">
        <xs:complexType>
          <xs:sequence/>
        </xs:complexType>
      </xs:element>
	  <xs:element name="Coaches2">
        <xs:complexType>
          <xs:sequence/>
        </xs:complexType>
      </xs:element>
      <xs:element name="Coaches2Response">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="CoachesResult" type="tns:ArrayOfStrings"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
	   <xs:element name="CoachesResponse">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="CoachesResult" type="tns:ArrayOfStrings"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
	 </xs:schema>
  </types>
  <message name="CoachesSoapRequest">
    <part element="tns:Coaches" name="parameters"/>
  </message>
  <message name="Coaches2NamesSoapRequest">
    <part element="tns:Coaches2" name="parameters"/>
  </message>
  <message name="CoachesSoapResponse">
    <part element="tns:CoachesResponse" name="parameters"/>
  </message>
  <message name="Coaches2NamesSoapResponse">
    <part element="tns:CoachesResponse" name="parameters"/>
  </message>
  
  
  
  <portType name="InfoSoapType">
  <jaxws:bindings xmlns:jaxws="http://java.sun.com/xml/ns/jaxws";>
        <jaxws:enableWrapperStyle>false</jaxws:enableWrapperStyle>
  
    </jaxws:bindings>
    <operation name="Coaches2Names">
      <documentation>Returns an array with the string names </documentation>
      <input message="tns:Coaches2NamesSoapRequest"/>
      <output message="tns:Coaches2NamesSoapResponse"/>
    </operation>
	<operation name="Coaches">
      <documentation>Returns an array with the string names </documentation>
      <input message="tns:CoachesSoapRequest"/>
      <output message="tns:CoachesSoapResponse"/>
    </operation>
 </portType>
  
  <binding name="InfoSoapBinding" type="tns:InfoSoapType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
   <operation name="Coaches">
      <soap:operation soapAction="" style="document"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
    </operation>
	<operation name="Coaches2Names">
      <soap:operation soapAction="" style="document"/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
    </operation>
 </binding>
  <service name="Info">
    <documentation></documentation>
    <port name="InfoSoap" binding="tns:InfoSoapBinding">
      <soap:address location="http://localhost:7069/InfoSoapType"/>
    </port>
  </service>
</definitions>

Reply via email to