Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > webservice.htc and custom object array. only first object is deserialized in the result.value

Reply
Thread Tools

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

 
 
sonicsoul@gmail.com
Guest
Posts: n/a
 
      05-18-2005
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/"
xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
xmlnssd="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>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
serialized and deserialized methods bintom C++ 3 06-06-2010 07:58 PM
Partially deserialized objects? Eric Czarny Java 1 12-01-2007 01:06 AM
How do Datasets manage to get deserialized as DataSets instead of a wsdl.exe-created proxy class? Francisco Garcia ASP .Net 2 04-13-2006 10:41 AM
How do Datasets manage to get deserialized as DataSets instead of a wsdl.exe-created proxy class? news.microsoft.com ASP .Net 0 04-12-2006 09:07 AM
Binding to deserialized objects in an arraylist !? Alex Nitulescu ASP .Net 5 02-21-2005 12:21 AM



Advertisments