• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Do AXIS API map Complex Types like Vector?

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try looking in the wsdl and see what namespace is used for the vector!
 
"I know this defies the law of gravity... but I never studied law." -B. Bunny Defiant tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic