Note that there are some explanatory texts on larger screens.

plurals
  1. POWeb service contains additional string tag
    primarykey
    data
    text
    <p>I am getting a web service response as below. It has additional XML tag and string tag in the response. I was not able to load this response into XMLDocument object in Dot Net. I have asked web service provider to remove those tags before sending response. But they said that this is the web service standard. Is it how web service suppose send the response? </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;string xmlns="http://tempuri.org/"&gt;&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;?ACORD version="1.7.0"?&gt; &lt;ACORD&gt;&lt;InsuranceSvcRs&gt;&lt;/InsuranceSvcRs&gt;&lt;/ACORD&gt;&lt;/string&gt; </code></pre> <p>Here is the code that calls web service</p> <pre><code>using (var webClient = new WebClient()) { webClient.Credentials = Credentials; byte[] responseArray; NameValueCollection postValues = GetParameters(); responseArray = webClient.UploadValues(GetUploadURL(), "POST", postValues); responseString = Encoding.ASCII.GetString(responseArray); } </code></pre> <p>Since I am using WebClient (not web service proxy), does web client class format the response like this?</p> <p>EDIT: When I tried with sample HelloWorld webservice with the above code, I got the response like this</p> <pre><code>&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;&lt;string xmlns=\"http://tempuri.org/\"&gt;Hello World&lt;/string&gt; </code></pre> <p>Having said that, I am repharasing my question Is it how webservice suppose send the response, when client proxy POST to the webservice?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload