webservice.htc and custom object array. only first object is deserialized in the result.value

S

sonicsoul

Hello
I've been using webservice.htc for 6 months or so with great results.

recently i came into the following problem that I am not sure how to
tackle. my webservice returns an array of simple objects.
the problem:
webservice callback result.value only shows the _first_ object in the
array ( result.value.myObject ).

where as result.raw shows all of the objects still serialized and tidy.
Looks like the webservice.htc is not de-serializing it properly ?
here is the result.raw. ( i shortened the namespaces to avoid line
breaks )

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<GetAvailabilityResponse xmlns="http://tempuri.org/">
<GetAvailabilityResult>
<AvailabilityResponse>
<SecurityCode xmlns=".../../s_WS/v1">asd</SecurityCode>
<Symbol xmlns=".../../s_WS/v1">ASD</Symbol>
<Cusip xmlns=".../../s_WS/v1">029712106</Cusip>
<Description xmlns=".../../s_WS/v1">AMERICAN STANDARD
COMPANIES</Description>
<Quantity xmlns=".../../s_WS/v1">15542821</Quantity>
<Rate xmlns=".../../s_WS/v1">0</Rate>
<ReturnCode xmlns=".../../s_WS/v1">0</ReturnCode>
<CfsErrorMsg xsi:nil="true" xmlns=".../../s_WS/v1"/>
</AvailabilityResponse>
<AvailabilityResponse>
<SecurityCode xmlns=".../../s_WS/v1">fasdf</SecurityCode>
<Symbol xsi:nil="true" xmlns=".../../s_WS/v1"/>
<Cusip xsi:nil="true" xmlns=".../../s_WS/v1"/>
<Description xsi:nil="true" xmlns=".../../s_WS/v1"/>
<Quantity xmlns=".../../s_WS/v1">0</Quantity>
<Rate xmlns=".../../s_WS/v1">0</Rate>
<ReturnDescription xmlns=".../../s_WS/v1">ERROR: SECURITY ID
NOT FOUND</ReturnDescription>
<ReturnCode xmlns=".../../s_WS/v1">-303</ReturnCode>
<CfsErrorMsg xmlns=".../../s_WS/v1">No matching Security
Found.</CfsErrorMsg>
</AvailabilityResponse>
<AvailabilityResponse>
<SecurityCode xmlns=".../../s_WS/v1">as</SecurityCode>
<Symbol xsi:nil="true" xmlns=".../../s_WS/v1"/>
<Cusip xsi:nil="true" xmlns=".../../s_WS/v1"/>
<Description xsi:nil="true" xmlns=".../../s_WS/v1"/>
<Quantity xmlns=".../../s_WS/v1">0</Quantity>
<Rate xmlns=".../../s_WS/v1">0</Rate>
<ReturnDescription xmlns=".../../s_WS/v1">ERROR: SECURITY ID
NOT FOUND</ReturnDescription>
<ReturnCode xmlns=".../../s_WS/v1">-303</ReturnCode>
<CfsErrorMsg xmlns=".../../s_WS/v1">No matching Security
Found.</CfsErrorMsg>
</AvailabilityResponse>
<AvailabilityResponse>
<SecurityCode xmlns=".../../s_WS/v1">fas</SecurityCode>
<Symbol xsi:nil="true" xmlns=".../../s_WS/v1"/>
<Cusip xsi:nil="true" xmlns=".../../s_WS/v1"/>
<Description xsi:nil="true" xmlns=".../../s_WS/v1"/>
<Quantity xmlns=".../../s_WS/v1">0</Quantity>
<Rate xmlns=".../../s_WS/v1">0</Rate>
<ReturnDescription xmlns=".../../s_WS/v1">ERROR: SECURITY ID
NOT FOUND</ReturnDescription>
<ReturnCode xmlns=".../../s_WS/v1">-303</ReturnCode>
<CfsErrorMsg xmlns=".../../s_WS/v1">No matching Security
Found.</CfsErrorMsg>
</AvailabilityResponse>
<AvailabilityResponse xsi:nil="true"/>
<AvailabilityResponse xsi:nil="true"/>
</GetAvailabilityResult>
</GetAvailabilityResponse>
</soap:Body>
</soap:Envelope>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top