• Post Reply Bookmark Topic Watch Topic
  • New Topic

Do AXIS API map Complex Types like Vector?  RSS feed

 
Yann Emeraud
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try looking in the wsdl and see what namespace is used for the vector!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!