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>
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.
AndriyB
0 Points
2 Posts
Web Service returns empty array/ XML Nodes Name collision
Feb 26, 2013 02:37 PM|LINK
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.
AndriyB
0 Points
2 Posts
Re: Web Service returns empty array/ XML Nodes Name collision
Feb 26, 2013 04:38 PM|LINK
http://geekswithblogs.net/LeonidGaneline/archive/2008/05/13/wcf-technique-to-debug-inconsistency-in-wsdl-and-response-messages.aspx
Haixia Xie -...
Contributor
3031 Points
296 Posts
Microsoft
Re: Web Service returns empty array/ XML Nodes Name collision
Mar 01, 2013 08:48 AM|LINK
Hi,
Can you explain more clearly on how do you return the array?
Best Regards.
Feedback to us
Develop and promote your apps in Windows Store