axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [jira] Created: (AXIS-1367) Invalid code generation for SimpleTypes
Date Thu, 20 May 2004 15:30:00 GMT
Message:

  A new issue has been created in JIRA.

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

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1367
    Summary: Invalid code generation for SimpleTypes
       Type: Bug

     Status: Unassigned
   Priority: Blocker

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

   Assignee: 
   Reporter: Kevin Jones

    Created: Thu, 20 May 2004 8:29 AM
    Updated: Thu, 20 May 2004 8:29 AM
Environment: Windows 2003 Server
JDK 1.4.2_03

Description:
I reported this on the dev list to see if it was a bug and had no response:

I have a WSDL doc that contains a schema and I'm running WSDL2Java -server.

The schema contains a simple type that is a parameter to one of the
'methods' on the web service. The SimpleType looks like this:

<xsd:simpleType name="ISBNType">
    <xsd:restriction base="xsd:string">
        <xsd:pattern value="[0-9]{3}-[0-9]{3}"/>
    </xsd:restriction>
</xsd:simpleType>

<xsd:element name="BookAvailabilityByISBN" type="tns:ISBNType"/>

and then the WSDL has this

<message name="getBookAvailabilityByISBNMsg">
    <part name="parameters" element="operations:BookAvailabilityByISBN"/>
</message>

The generated Java for this looks like

public AvailabilityDetails getBookAvailabilityByISBN(String parameters)
throws java.rmi.RemoteException;

i.e. it is defined as taking a String and no ISBNType Java type is defined. 

The WSDD looks like this

<typeMapping
    xmlns:ns="urn:com.develop.ejws:orinoco"
    qname="ns:ISBNType"
    type="java:java.lang.String"
    serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
    deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
    encodingStyle=""
/>

and when I browse to the generated WSDL (I'm letting the server re-generate
the WSDL) I get the following

<element name="BookAvailabilityByISBN" type="tns1:ISBNType"/>

but no ISBNType is defined in the WSDL/Schema, so either the type here should be xsd:string
or the WSDL needs to contain a definition for ISBNType


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


Mime
View raw message