Hi
I have a WCF service on my company server.
I works well for all clients.But one of our client cannot connect to the service. When the client tries to connect the message
There is a problem with the XML that was received from the network. See inner exception for more details
returns.
I used Fiddler to investigate the HTTP messages that exchange. When I connect from my own system to the service the HTTP response captured by Fiddler is
HTTP/1.1 200 OK
Date: Sun, 03 Feb 2013 10:23:57 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 4.0.30319
Content-Length: 376
Cache-Control: private
Content-Type: text/xml; charset=utf-8
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><InvokeMainServiceResponse xmlns="http://tempuri.org/"><InvokeMainServiceResult>00A000620B6A60643C40669460B4002055C0686071270476002A3223030BD67400606662326627040007E00024D0206D320C96264061BA6702766402206F24443002600860076D041807</InvokeMainServiceResult></InvokeMainServiceResponse></s:Body></s:Envelope>
which is correct but when I connect from the client the response is
HTTP/1.0 200 OK
Date: Sun, 03 Feb 2013 09:54:58 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 4.0.30319
Content-Length: 376
Cache-Control: private
Content-Type: text/xml; charset=utf-8
Connection: keep-alive
private
Content-Type: text/xml; charset=utf-8
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><InvokeMainServiceResponse xmlns="http://tempuri.org/"><InvokeMainServiceResult>00A000620B6A60643C40669460B4002055C0686071270476002A3223030BD67400606662326627040007E00024D0206D320C96264061BA6702766402206F24443002600860076D041807</InvokeMainServiceResult>
and the following two extra lines
private
Content-Type: text/xml; charset=utf-8
cause the client program not to be able to extract the XML from the HTTP response.
I cannot figure out where those lines come from. Your help is really needed.
Thanks.