I'm using 2.3.3 with a project and the wsdl creation contains duplication of 
the web service request/response objects. elements. I'm generating the WSDL 
from the annotated Java code. I have an older project using 2.2.10 and it only 
generates the 1st element definitions and references them where 2.3.3 is 
duplicating. 

Any ideas why? Here's the wsdl snippets:

<wsdl:definitions name="test_v1" targetNamespace="http://mycompany.com"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
                  xmlns:tns="http://mycompany.com"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
                  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";>
    <wsdl:types>
        <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:tns="http:// mycompany.com" elementFormDefault="unqualified"
                   targetNamespace="http:// mycompany.com" version="1.0">
            <xs:element name="MyRequest">
                <xs:complexType>
                       ...complicated generated type stuff here...
                </xs:complexType>
            </xs:element>
            <xs:element name="MyResponse">
                <xs:complexType>
                       ...complicated generated type stuff here...
                </xs:complexType>
            </xs:element>
            <xs:element name="doSomethingExciting" 
type="tns:doSomethingExciting "/>
            <xs:element name=" doSomethingExcitingResponse" 
type="tns:doSomethingExcitingResponse"/>
            <xs:complexType name="doSomethingExciting">
                <xs:sequence>
                    <xs:element minOccurs="0" name="MyRequest">
                        <xs:complexType>
                             ...same complicated generated stuff that we had 
above...
                        </xs:complexType>
                    </xs:element>
                </xs:sequence>
            </xs:complexType>
            <xs:complexType name=" doSomethingExcitingResponse">
                <xs:sequence>
                    <xs:element minOccurs="0" name="MyResponse">
                        <xs:complexType>
                             ...same complicated generated stuff that we had 
above...
                        </xs:complexType>
                    </xs:element>
                </xs:sequence>
            </xs:complexType>
        </xs:schema>
    </wsdl:types>
   ... wsdl type/binding/service stuff...
</wsdl:definitions>


Reply via email to