Client found response content type of '', but expected 'text/xml' RRS feed

  • Question

  • Hi,

    I'm consuming external webservice, which I cannot change. When I try to call it, I receive error message "Client found response content type of '', but expected 'text/xml'". The problem is that the webservice is working correctly, but the server simply do not set content type header at all. 

    This is what I've found using wireshark:

    POST /sendMessage/ HTTP/1.1

    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 4.0.30319.1008)

    Content-Type: text/xml; charset=utf-8

    SOAPAction: "http://xxxxxx/yyy/sendMessage"

    Host: x.x.x.x.:7778

    Content-Length: 460

    Expect: 100-continue

    Connection: Keep-Alive

    HTTP/1.1 100 Continue

    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="" xmlns:xsi="" xmlns:xsd=""><soap:Body><sendMessageRequest xmlns="http://xxxxxx/yyy"><user>user</user><apikey>pass</apikey><appid>appid</appid><msisdn>48601123123</msisdn><text>test</text></sendMessageRequest></soap:Body></soap:Envelope>

    HTTP/1.1 200 OK

    Connection: keep-alive

    Transfer-Encoding: chunked


    <soap:Envelope xmlns:soap="" xmlns:cbu="http://xxxxxx/yyy"><soap:Body><yyy:sendMessageResponse>


    The question is: can I do something about it?

    Thursday, July 25, 2013 6:25 PM


All replies