jQuery in Action, 2nd edition*
The moose likes Web Services and the fly likes AXIS web service returnig an array of custom objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "AXIS web service returnig an array of custom objects" Watch "AXIS web service returnig an array of custom objects" New topic
Author

AXIS web service returnig an array of custom objects

Ranadhir Nag
Ranch Hand

Joined: Mar 09, 2006
Posts: 138
I have a Stock ,which contains and array of Quotes.
I am trying to pass an array of such stocks to the client from a Axis 1.4 built webservice.
Here are the relevant snippets from the xsd,wsdl and implementation files:


I get an exception:
org.xml.sax.SAXParseException: Element type "Stock" must be followed by
either attribute specifications, ">" or "/>".

However,a String array is marshalled just fine.
Is there something I am missing - help is appreciated
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AXIS web service returnig an array of custom objects