aspose file tools*
The moose likes Web Services and the fly likes Need xsd for java.util.Vector Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Need xsd for java.util.Vector" Watch "Need xsd for java.util.Vector" New topic
Author

Need xsd for java.util.Vector

Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
Hi All,


I have 2 questions :


1. Can anyone give me a xsd file for the java class that is an input to a POJO that need to be exposed as web service that need to be exposed as Document/Literal style web service using Apache AXIS. Basically I want to generate an xsd schema for this java class and include that in a WSDL that need to be given to .NET so that they can consume my service.




2. Do we have tools that generate xsd schemas for such java classes. Did anyone use one ?


I know that for achieving Web Service interropability it is better to avoid language specific collections but still I am interested if anyone can answer to my 1st question.


Thanks & Regards,


RR Kumaran
SCJP 1.4
JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
Java Vector is not really *supported* with web services, bacause it is related to some specific language options.

So in XML, it will probably become a xsd:anyType or a complexe type with a sequence of anyTypes.

For your needs, I believe the only fully interoperable type is java.lang.Array


/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need xsd for java.util.Vector
 
Similar Threads
Consuming a SOAP Vector Type from .Net
Consuming a SOAP Vector Type from .Net
Web Service Interoperablity
web service client
How can I pass vector in java?