This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Axis - describing arrays in WSDL : 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 "Axis - describing arrays in WSDL : "unbounded sequence" instead of "soapenc:Array"" Watch "Axis - describing arrays in WSDL : "unbounded sequence" instead of "soapenc:Array"" New topic
Author

Axis - describing arrays in WSDL : "unbounded sequence" instead of "soapenc:Array"

Sol Mayer-Orn
Ranch Hand

Joined: Nov 13, 2002
Posts: 311
Would anyone happen to know if it's possible to control the way Axis describes arrays in WSDL - in particular, is it possible
to make it use <sequence maxOccurs='unbounded'> , instead of <soapenc:Array> ?

For instance, a web service that receives a parameter of type Zoo,
where Zoo holds an array of animals:



Then by default, Axis would generate a WSDL with :




Thanks a lot in advance
Ashutosh Shahi
Ranch Hand

Joined: Feb 06, 2005
Posts: 36
If, whicle creating the WSDL, u specify the Style/Use as RPC/Encoded, u get soapenc:array, if u specfy that as Document/Literal u get maxoccurs="unbounded" kinda output. Hope it helps.
Ashutosh


<a href="http://blogs.sun.com/roller/page/ashutosh" target="_blank" rel="nofollow">http://blogs.sun.com/roller/page/ashutosh</a>
Sol Mayer-Orn
Ranch Hand

Joined: Nov 13, 2002
Posts: 311
Thanks very much !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis - describing arrays in WSDL : "unbounded sequence" instead of "soapenc:Array"
 
Similar Threads
problem with WSDL2Java and nested complex types
again: c# apache axis arrays
Axis generating Elements instead of Attributes
problem with String [] in axis 1.3 and .net client
java.io.IOException: Type {http://lang.java}Exception is referenced but not defined.