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

Discussion in 'ASP .Net Web Services' started by sonicsoul@gmail.com, May 18, 2005.

  1. Guest

    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>
     
    , May 18, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. batista
    Replies:
    1
    Views:
    926
    Laurent Bugnion
    Jan 26, 2006
  2. batista
    Replies:
    0
    Views:
    568
    batista
    Jan 26, 2006
  3. sonic_soul
    Replies:
    1
    Views:
    280
    David
    Oct 26, 2004
  4. batista
    Replies:
    0
    Views:
    258
    batista
    Jan 26, 2006
  5. webservice.htc doesnt work on first call

    , Jul 26, 2006, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    113
Loading...

Share This Page