DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14820>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14820

Axis successfully imports invalid WSDL and XML schema files with elements with equal 
names in the same scope

           Summary: Axis successfully imports invalid WSDL and XML schema
                    files with elements with equal names in the same scope
           Product: Axis
           Version: 1.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WSDL processing
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


Axis WSDL2Java successfully imports invalid WSDL and XML schema files which
have elements with the same name within the same scope. I attached a zip file 
with some test cases (main-01.wsdl to main-05.wsdl)

----------------------------------------------------------------
main-01.wsdl:

Two elements with the same name  if the complex type Sall

<element name="fd1" type="int"/>
<element name="fd1" type="long"/>

----------------------------------------------------------------
main-02.wsdl:
Two complex types with the same name but with different content:

<complexType name="Sall">

----------------------------------------------------------------
main-03.wsdl:

Message with two parts with the same name:

<part name="body1" type="xsd1:Sall"/>
<part name="body1" type="xsd1:allW"/>


WSDL spec requires that names of parts are unique within a message 
(2.3. Messages, right before 2.3.1 Message parts)

----------------------------------------------------------------
main-04.wsdl:

Two messages with the same name:

<message name="GetLastTradePriceInput">

WSDL spec requires that names of messages are unique within a WSDL file 
(2.3. Messages)

----------------------------------------------------------------
main-05.wsdl:

Two porttypes with the same name:

<portType name="StockQuotePortType">

WSDL spec requires that names of porttypes are unique within a WSDL file 
(2.4. Port Types)

----------------------------------------------------------------

Reply via email to