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 ax...@ws.apache.org on 2004/09/23 00:33:32 UTC

[jira] Closed: (AXIS-1564) Java2WSDL no longer generates Schema types for arrays

Message:

   The following issue has been closed.

   Resolver: Glen Daniels
       Date: Wed, 22 Sep 2004 3:32 PM

Closed as requested.
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1564

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1564
    Summary: Java2WSDL no longer generates Schema types for arrays
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             current (nightly)
             beta-2
             beta-1

   Assignee: 
   Reporter: Jason T. Greene

    Created: Tue, 21 Sep 2004 11:28 AM
    Updated: Wed, 22 Sep 2004 3:32 PM
Environment: Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Linux

Description:
In Axis 1.1 If you created javabeans that were just simple data structures (no getters/setters, just public vars). And one of those public vars was an array, Java2WSDL would generate xml schema to describe the array. Now in Axis1.2beta - current, Axis will only generate wsdl for arrays using the older soapenc type. This poses a problem because the system we are integrating with (Tibco BW) has problems mapping to soapenc array types.

I will attatch a test case shortly. Here is an example snipped of the WSDL difference between 1.1 and 1.2beta - current:

1.1
---------------------------------------------------------------------
<wsdl:types>
  <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://DefaultNamespace">
   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
   <complexType name="InnerTest2">
    <sequence>
     <element name="blah" nillable="true" type="xsd:string"/>
     <element name="blah2" type="xsd:int"/>
    </sequence>
   </complexType>
   <complexType name="InnerTest1">
    <sequence>
     <element name="foos" nillable="true" type="impl:InnerTest2" maxOccurs="unbounded"/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>

1.2
----------------------------------------------------------------------
 <wsdl:types>
  <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://DefaultNamespace">
   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
   <complexType name="InnerTest2">
    <sequence>
     <element name="blah" nillable="true" type="xsd:string"/>
     <element name="blah2" type="xsd:int"/>
    </sequence>
   </complexType>
   <complexType name="ArrayOfInnerTest2">
    <complexContent>
     <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:InnerTest2[]"/>
     </restriction>
    </complexContent>
   </complexType>
   <complexType name="InnerTest1">
    <sequence>
     <element name="foos" nillable="true" type="impl:ArrayOfInnerTest2"/>
    </sequence>
   </complexType>
  </schema>
 </wsdl:types>




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