File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Do AXIS API map Complex Types like Vector? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Do AXIS API map Complex Types like Vector?" Watch "Do AXIS API map Complex Types like Vector?" New topic
Author

Do AXIS API map Complex Types like Vector?

Yann Emeraud
Greenhorn

Joined: May 03, 2004
Posts: 15
Hi,
I would like to know if the AXIS method getClassForQName (http://ws.apache.org/axis/java/apiDocs/org/apache/axis/encoding/TypeMapping.html#getClassForQName(javax.xml.namespace.QName)) do map Vector type description from a WSDL file to the corresponding Java Vector class.
If it s true, which namespace and local part are recognized by this method?
Here my problem, i use a DII client and try to call a remote method returning a Vector.
To map the WSDL description of a Vector to a Java Vector class i do this:

If the above wsdlQName is a description of a String it works: wslQname is a java.lang.String class
QName wsdlQName = new QName("http://www.w3.org/2001/XMLSchema", "string");
But if it is a description of a Vector it fails: wslQName is null;
QName wsdlQName = new QName("http://java.sun.com/jax-rpc-ri/internal", "vector");
Do you see where i am wrong?
Here the original code.
[ May 11, 2004: Message edited by: Yann Emeraud ]
Catalin Barcau
Greenhorn

Joined: May 14, 2004
Posts: 6
try looking in the wsdl and see what namespace is used for the vector!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Do AXIS API map Complex Types like Vector?
 
Similar Threads
Problem while calling methods
wsdl not getting called
wsdl not getting called
JWSDP, DII Client and method returning complex type(edit)
Problem with mapping Array String into HashMap in Axis