E
E
eclipse202016-02-09 15:19:15
PHP
eclipse20, 2016-02-09 15:19:15

Error in SoapClient in PHP: Cannot process the message because the content type 'text/xml; charset=utf-8'?

Hello everyone, when calling a function through SoapClient, I get an error: Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'.
I read on the Internet that the matter is in SOAP version 1.1., Therefore, I tried to send a request with SOAP_1_2, but in this case the request simply hangs and after a while returns an error that it was not possible to read the HTTP headers. Haven't faced such a problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Prk11, 2016-02-26
@Prk11

The problem is most likely in the server, not the client. The SoapClient in php can't process the message if there are some deviations in the soap protocol. I myself have come across many times, for example, VisualStudio easily swallows it, but SoapClient does not want to in php. If it is possible to influence the change in the server part, then it is worth doing it, or if this is not possible, then use another library for processing SOAP.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question