anty.info

Comments and help on web development.

SOAP: Procedure ‘foo’ not present

Recently SOAP kept shouting “Procedure ‘foo’ not present in …” at me.
I assumed the mistake in my WSDL file, since I knew the function “foo” existed.
If you get the “Procedure ‘foo’ not present”-error, too you either:

forgot to add the procedure “foo” to your SOAP server implementation, or
you are using a cached version of your WSDL [...]

Server-side SOAP debugging in PHP

Debugging SOAP in PHP can be really time intensive.
I found the best practice debugging SOAP is using a log file. I use this code to catch exceptions in the server implementation: