ZF-7865: Zend_Soap_Client doesn't work with content-type application/soap+xml

Issue Type: Bug Created: 2009-09-17T03:18:33.000+0000 Last Updated: 2012-11-20T21:37:32.000+0000 Status: Open Fix version(s): Reporter: Marcus Stöhr (marcus.stoehr) Assignee: None Tags: - Zend_Soap_Client

Related issues: - ZF-5286



I'm trying to connect with the webservices to query for certain products. When querying any method I just receive the following exception:

PHP Fatal error: Uncaught SoapFault exception: [HTTP] Cannot process the message because the content type 'application/soap+xml; charset=utf-8; action="http://affilinet.framework.webservices/Svc/ProductServiceContract/SearchProducts"' was not the expected type 'text/xml; charset=utf-8'. in /usr/local/zend/share/ZendFramework/library/Zend/Soap/Client.php:937 Stack trace:

0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'https://api.aff...', 'http://affiline...', 2)

1 /usr/local/zend/share/ZendFramework/library/Zend/Soap/Client.php(937): call_user_func(Array, '<?xml version="...', 'https://api.aff...', 'http://affiline...', 2)

2 [internal function]: Zend_Soap_Client->_doRequest(Object(Zend_Soap_Client_Common), '<?xml version="...', 'https://api.aff...', 'http://affiline...', 2, 0)

3 /usr/local/zend/share/ZendFramework/library/Zend/Soap/Client/Common.php(70): call_user_func(Array, Object(Zend_Soap_Client_Common), '<?xml version="...', 'https://api.aff...', 'http://affiline...', 2, 0)

4 [internal function in /usr/local/zend/share/ZendFramework/library/Zend/Soap/Client.php on line 937

The documentation of the service can be found here:…


Posted by Ingo Reinhart (ireinhart) on 2009-09-25T07:57:14.000+0000

Is a dup, show

Posted by Artem Stepin (nemesis2010) on 2010-06-10T06:34:23.000+0000

I'm currently sitting on the same problem ... is there any solution for this "" issue?


ok i get the simple solution:

<pre class="highlight"> 

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.