Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Empty values returned to client  RSS feed

Priyanka Kumar
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created a WebService using Axis1.4. It returns an object array,included in an object, but all the values returned to the client are empty. Using the TCP monitor, the SOAP response correctly displays the values of each element.

My client is a web based , created using WSAD,(Axis1.0). Can using Axis1.0 be the cause for lost values.?

Please see a portion of the wsdl, for the response element

<xsd:complexType name="checkResponse">
<xsd:element minOccurs="1" maxOccurs="1" name="checkInformation" type="checkInformation"/>

<xsd:complexType name="checkInformation">
<xsd:element minOccurs="1" maxOccurs="1"
ref="micrCount" />
<xsd:element minOccurs="1" maxOccurs="unbounded"
name="micr" type="micr">

The element micr, is returned as an array in checkInformation. On the client side, when I process the response like

Micr[] micrArray = response.getCheckInformation().getMicr();

Micr micr = new Micr();
micr = (Micr)micrArray[0];

micr.getAccountNumber()---> Returns 0, instead of the actual account number value.

Any suggestions, why the values are not returned to the client.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!