You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ji...@apache.org on 2004/06/02 20:08:54 UTC

[jira] Closed: (AXIS-1368) Java2WSDL generates elements with the same QName if more than one service-specific fault is present

Message:

   The following issue has been closed.

   Resolver: Davanum Srinivas
       Date: Wed, 2 Jun 2004 11:08 AM

Applied Patch from Andrei.

-- dims
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1368

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1368
    Summary: Java2WSDL generates elements with the same QName if more than one service-specific fault is present
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

    Project: Axis
 Components: 
             WSDL processing
   Fix Fors:
             current (nightly)
   Versions:
             current (nightly)

   Assignee: Davanum Srinivas
   Reporter: Andrei Iltchenko

    Created: Tue, 25 May 2004 6:19 AM
    Updated: Wed, 2 Jun 2004 11:08 AM

Description:
Java2WSDL generates elements with the same QName for document/literal or "wrapped" style web service components if more than one service-specific fault is present.

This gives rise to ill-formed wsdl documents like the one below (the whole document is attached):

  <wsdl:types>
  <schema targetNamespace="http://businesslogicxsdschema.webservices.integration.sample1">
      <complexType name="AlturaPostConditionException">
        <sequence>
          ...
        </sequence>
      </complexType>
      <complexType name="AlturaPreConditionException">
        <sequence>
          ...
        </sequence>
      </complexType>

    </schema>
    
    <schema targetNamespace="http://cwnl-c1995.nl.compuware.com:8081/services/DomainService">
      <!-- The following two declarations are ill-formed -->
      <element name="msg" type="tns1:AlturaPostConditionException" /> 
      <element name="msg" type="tns1:AlturaPreConditionException" /> 
    </schema>

  </wsdl:types>

  <wsdl:message name="AlturaPostConditionException">
    <wsdl:part element="impl:msg" name="msg" /> 
  </wsdl:message>
  <wsdl:message name="AlturaPreConditionException">
    <wsdl:part element="impl:msg" name="msg" /> 
  </wsdl:message>

The cause of the problem is an omission in the 'Types.writeElementDecl' method, which fails to keep track of names that have already been used.




---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira