问题描述:

I cannot parse the response from Web Service. When I hit a WCF SOAP web service, I expect to receive SOAP envelope response from Server as follows-

 <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">

<s:Body>

<TestResponse xmlns="http://tempuri.org/">

<TestResult>It works fine

</TestResult>

</TestResponse>

</s:Body>

</s:Envelope>

But I am getting this response-

--uuid:7b4a0f06-3b1d-485c-ad60-e49a7c00bfd5+id=7

Content-ID: <http://tempuri.org/0>

Content-Transfer-Encoding: 8bit

Content-Type: application/xop+xml;charset=utf-8;type="text/xml"

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">

<s:Body>

<TestResponse xmlns="http://tempuri.org/">

<TestResult>It works fine

</TestResult>

</TestResponse>

</s:Body>

</s:Envelope>

--uuid:7b4a0f06-3b1d-485c-ad60-e49a7c00bfd5+id=7--

How can I receive SOAP envelope only? I can definitely trim the response string but I dont want to do that. Is there any property/attribute to be set from WCF server side??

I am not able to parse this to get response in tag.

Can anybody help??

Am I missing anything???

相关阅读:
Top