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 "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2006/11/06 16:52:39 UTC

[jira] Commented: (AXIS2-1584) Migrating to Axis2 Using WSDL2JAVA

    [ http://issues.apache.org/jira/browse/AXIS2-1584?page=comments#action_12447451 ] 
            
Amila Chinthaka Suriarachchi commented on AXIS2-1584:
-----------------------------------------------------

It is not possible to  have classes like Vector, List to keep collection of objects. Because then we do not know how to serialize and deserialize these objects at runtime. So always we have to use the arrays to keep a set of objects. In adb case org.apache.xml.xml_soap.Vector contains an array of OMElements.

> Migrating to Axis2 Using WSDL2JAVA
> ----------------------------------
>
>                 Key: AXIS2-1584
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1584
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>         Environment: Axis 2 v1.0
>            Reporter: caroline
>         Attachments: CPSGateway3.3.wsdl
>
>
> Hi ,I tried migrating a webservice to axis 2 , using the attached wsdl. 
> However, I keep finiding problems with certain types, for example:    <wsdl:part name="getTransactionsReturn" type="apachesoap:Vector"/>.The response object returned by method getTransactions() is supposed to be a Vector. 
> However the code being generated is 
> GetTransactionsResponse extends org.apache.xmlbeans.XmlObject
>  org.apache.xml.xml_soap.Vector addNewGetTransactionsReturn();
> I need to use java.util.Vector().
> I also had problems with ArrayOfTypes , however I removed these from the wsdl for the time being.
> I apreciate any help you might be able to give.

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org