I would add some additional checks for UploadData. For example I suspect that if the service fails intermitently (they have perhaps something to prevent doing too much queries fro the same IP within a given time frame ?), they may return some HTML markup
that warns about the error rather than an XML payload.
I would check the response content type to see if the returned payload is really XML and/or would trace the what is returned to see how it looks like.
All-Star
48340 Points
18014 Posts
Re: XML root element missing issue c#
Aug 12, 2015 08:30 AM|PatriceSc|LINK
Hi,
I would add some additional checks for UploadData. For example I suspect that if the service fails intermitently (they have perhaps something to prevent doing too much queries fro the same IP within a given time frame ?), they may return some HTML markup that warns about the error rather than an XML payload.
I would check the response content type to see if the returned payload is really XML and/or would trace the what is returned to see how it looks like.