Issues

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

Description

I'm trying to connect with the affili.net 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: http://developer.affili.net/DesktopDefault.aspx/…

Comments

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

EDIT:

ok i get the simple solution:

 
$this->_soapClient->setSoapVersion(SOAP_1_1);