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/04/12 14:32:43 UTC

[jira] Closed: (AXIS-487) Java2WSDL generates schema element with type=""

Message:

   The following issue has been closed.

   Resolver: Davanum Srinivas
       Date: Mon, 12 Apr 2004 5:32 AM

Need example to recreate the problem.

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

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-487
    Summary: Java2WSDL generates schema element with type=""
       Type: Bug

     Status: Closed
 Resolution: CANNOT REPRODUCE

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.0

   Assignee: 
   Reporter: Mark Volkmann

    Created: Wed, 6 Nov 2002 9:30 PM
    Updated: Mon, 12 Apr 2004 5:32 AM
Environment: Operating System: Windows NT/2K
Platform: PC

Description:
Java2WSDL can generate schema definitions of complex types like the following.

  <xsd:schema targetNamespace="http://util.core.agedwards.com">
   <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
   <xsd:complexType name="WrappingException">
    <xsd:sequence>
     <xsd:element name="message" nillable="true" type="xsd:string"/>
     <xsd:element name="nestedException" nillable="true" type=""/>
    </xsd:sequence>
   </xsd:complexType>
  </xsd:schema>

Note the type="".  This causes WSDL2Java to fail with the following error.

java.io.IOException: Type {http://schemas.xmlsoap.org/wsdl/} is referenced but 
not defined.

When I changed it to type="xsd:anyType" (based on a tip from Brian Ward) the 
problem went away.


---------------------------------------------------------------------
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