I think that because addResult is the only out parameter in the RPC
call, WSDL2Java will generate code that will declare the return type of
your RPC to be an Array, no-name. Add another out parameter, call it
"ignore", and WSDL2Java will create holders for both the out parameters
and the RPC will return void.

cheers,
        Simon

-----Original Message-----
From: St-Germain, Sylvain [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 3:48 PM
To: Axis-User (E-mail)
Subject: Question about the element name of an array.



>From what I can see, it looks like the name of the element that
contains an
array is irrelevent.  In the response below the "addResult" name is no
wehere in my WSDL:

<ns1:addResponse ...>
  <addResult xsi:type="SOAP-ENC:Array"
SOAP-ENC:arrayType="xsd:string[2]"
....>
    <item xsi:type="xsd:string">www.macadamian.com</item>
    <item xsi:type="xsd:string">Macadamian Tecnologies Web Site</item>
  </addResult>
</ns1:addResponse>

If the "addResult" name is irrelevent, anyone knows what happen when a
response is a struct containing two arrays?

--
Sylvain 

This message may contain privileged and/or confidential information.  If
you
have received this e-mail in error or are not the intended recipient,
you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the
sender
promptly by e-mail that you have done so.  Thank you.

Reply via email to