Thanks for the comprehensive answer Pete.
Having switched to using wrapped arrays (and changing server code, client
code, and WSDL!) my code now works. I was surprised to find that I had to
change the server-side code so that each class contained an ArrayOfXXX
rather than XXX []. Without this (seemingly unnecessary) layer of
indirection I couldn't get the code to work at all. For example: using
simple document/literal rather than wrapped caused me to lose all 2nd and
subsequent parameters to all my operations.
<rant>Who would specify an interface where this kind of mess was even a
possibility never mind a likelihood? If you want to surround arrays with
<array> ... </array> or something else then that's fine but surely you don't
have to involve me (and my server-side code, client-side code, and WSDL!) in
the decision. We've had arrays since about the Stone Age so it's not as if
the people specifying these interfaces didn't know about them.</rant>
That said, I appreciate your answer. Very helpful.
From: "Pete Hendry" <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: <[email protected]>
CC: <[EMAIL PROTECTED]>
Subject: RE: When to use undocumented wsdl2java --wrapArrays?
Date: Thu, 10 Nov 2005 16:58:34 +1300
[snip long & useful post]
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/