You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Kiran Kumar <kk...@objectwave.com> on 2006/02/04 01:13:25 UTC

Incorrect serialization with Arrays (wraped style) - Axis 1.3

Hello

I am using Axis 1.3 (Java). I created my service endpoint method as

public DataHandler test(String effectiveDate, 
			String expiryDate, 
			String[] arrActivities,
			String[] arrStatus, 											  
			String typeOfClient) {}

I used Java2WSDL to generate WSDL (wrapped style), it generated the WSDL with XSD type as

- <complexType>
- <sequence>
  <element name="effectiveDate" type="xsd:string" /> 
  <element name="expiryDate" type="xsd:string" /> 
  <element maxOccurs="unbounded" name="arrActivities" type="xsd:string" /> 
  <element maxOccurs="unbounded" name="arrStatus" type="xsd:string" /> 
  <element name="typeOfClient" type="xsd:string" /> 
  </sequence>
  </complexType>

It works fine as long as the client passes all the elements in the input. 

But if the client misses the element 'arrActivities' then it takes 'arrStatus' elements as 'arrActivities' that means arrActivities[] string array will have the elements of <arrStatus> and arrStatus[] will have the value of 'typeOfclient' and typeOfclient will be empty.

Is this a bug or Am I doing something wrong ?

Thanks
Kiran


------------------------------------------------

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.

------------------------------------------------