14. Februar 2011

PHP SOAP: error: Procedure 'abc' not present

This error happens if the WSDL doesn't return this method.

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>Procedure 'abc' not present</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Most of the time the problem is that the SOAP client/server components cache the wsdl file and changes aren't refreshed when calling it. So you should simply delete those cache files (exact position where the cache-files are stored can be obtained from phpinfo()):

rm /tmp/wsdl-*

Credits goes to: http://artur.ejsmont.org/blog/content/php-soap-error-procedure-xxx-not-present

More information about SOAP Webservices: 
PHP : SOAP: Creating and Consuming a WSDL Web-Service

Keine Kommentare:

Kommentar veröffentlichen