Thursday, 15 April 2010

Zend Soap Client exception

If Zend_Soap_Client is giving you an "Invalid SOAP request" and you don't know why, try adding "$client->setSoapVersion(SOAP_1_1);".

The error I was getting:

[SoapFault]
Invalid SOAP request
stack trace

* at ()
in C:\xampplite\php\PEAR\Zend\Soap\Client.php line 1113 ...
1110. $this->_preProcessArguments($arguments),
1111. null, /* Options are already set to the SOAP client object */
1112. (count($soapHeaders) > 0)? $soapHeaders : null,
1113. $this->_soapOutputHeaders);
1114.
1115. // Reset non-permanent input headers
1116. $this->_soapInputHeaders = array();


Thanks to Mark Steudel's comment at the zend soap client page

No comments:

Post a comment