This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: AXIS web service returnig an array of custom objects
 
It's not a secret anymore!