locked
Web Service returns empty array/ XML Nodes Name collision RRS feed

  • Question

  • User1506553685 posted

    Hi all, 

    I'm using client's web service to collect data about certificates. The return data should be several properties and array of certificates.
     I can perfectly receive all data in the fields, however the array is empty (not null). I've just checked with fiddler SOAP Reponse and perfectly able to see the result. And there are several items in the array.
    <property1>MyLogin</property1>

     <property2>MyPassword</property2> 

     <property3>SomeTimeStamp</property3> 

     <property4>RandomData</property4> 

    <CertificationElement>

           <CertificationElement>
               <Name>Cert1</Name>
          </CertificationElement> 

          <CertificationElement>
               <Name>Cert2</Name>
          </CertificationElement> 

    </CertificationElement>

     As you understood, in Visual Studio CertificationElement Array returns no items.

    Could it be that parent node  CertificationElement matches children nodes with the same name? Could it be some kind of name collision for the standard SOAP Deserializer. 

    I will be very greatful for any ideas.

     Thanks.

     

    Tuesday, February 26, 2013 10:37 AM

Answers

  • User1506553685 posted

    http://geekswithblogs.net/LeonidGaneline/archive/2008/05/13/wcf-technique-to-debug-inconsistency-in-wsdl-and-response-messages.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 26, 2013 12:38 PM

All replies

  • User1506553685 posted

    http://geekswithblogs.net/LeonidGaneline/archive/2008/05/13/wcf-technique-to-debug-inconsistency-in-wsdl-and-response-messages.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 26, 2013 12:38 PM
  • User-1000095884 posted

    Hi,

    I can perfectly receive all data in the fields, however the array is empty (not null).

    Can you explain more clearly on how do you return the array?

    Best Regards.

    Friday, March 1, 2013 4:48 AM