• Post Reply Bookmark Topic Watch Topic
  • New Topic

Empty values returned to client

 
Priyanka Kumar
Greenhorn
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:sequence>
<xsd:element minOccurs="1" maxOccurs="1" name="checkInformation" type="checkInformation"/>
</xsd:sequence>
</xsd:complexType>

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

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.

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