Hi.

In Axis 1.2 RC1 I defined the following WSDL sequence:

<complexType name="StringArray">
   <sequence>
       <element name="string" type="string" minOccurs="0"
maxOccurs="unbounded"/>
   </sequence>
</complexType>

as well as a simple "ping" operation returning a StringArray:

<wsdl:message name="PingRequest">
</wsdl:message>

<wsdl:message name="PingResponse">
   <wsdl:part name="out" type="StringArray"/>
</wsdl:message>

Now, if my WebService returns a StringArray holding a zero sized
String[]:

return new StringArray(new String[0])

my "ping" client actually will receive a StringArray holding a null
reference. Meaning, on the client:

StringArray ret = webservice.ping();
ret.getString() is null

I would rather expect my client to also receive a StringArray bearing a
String[0]

Is this a bug or a feature?

Cheers,
Silvano





Reply via email to