Java2WSDL converts java.util.Vector ok, but not java.util.Vector[] 
(Vector-array) 
----------------------------------------------------------------------------------

         Key: AXIS-2425
         URL: http://issues.apache.org/jira/browse/AXIS-2425
     Project: Apache Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.3    
 Environment: Windows 2000, Java 1.4.2_04
    Reporter: Dr. Friedemann Weik
    Priority: Minor


When I have in my Java-Bean a definition like

    private java.util.Vector vHiddenStations;

it gets converted by Java2WSDL in the wsdl into

     <element name="vHiddenStations" nillable="true" type="apachesoap:Vector"/>

which seems to be ok.

The defintion

    private java.util.Vector[] arrVDestinations;

is converted in the wsdl into

     <element name="arrVDestinations" nillable="true" 
type="impl:ArrayOf_apachesoap_Vector"/>

which still looks ok. However: the complex data type ArrayOf_apachesoap_Vector 
is defined as

   <complexType name="ArrayOf_apachesoap_Vector">
    <complexContent>
     <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:anyType[][]"/>
     </restriction>
    </complexContent>
   </complexType>

which will NOT convert into java.util.Vector[], when calling WSDL2Java. If I 
modify the generated wsdl manually in this part into

   <complexType name="ArrayOf_apachesoap_Vector">
    <complexContent>
     <restriction base="soapenc:Array">
      <attribute ref="soapenc:arrayType" wsdl:arrayType="apachesoap:Vector[]"/>
     </restriction>
    </complexContent>
   </complexType>

it works fine.

Interestingly the defintion for the namespace "apachesoap" in the generated 
head portion of the wsdl says:

... xmlns:apachesoap="http://xml.apache.org/xml-soap"; ...

which gives - when triying to access it with a browser:

Not Found
The requested URL /xml-soap was not found on this server.
--------------------------------------------------------------------------------
Apache/2.2.0 (Unix) Server at xml.apache.org Port 80

Is this OK?

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to