When I try to access a function in wsdl with some data(using soap client in php) I am getting the following error.
Uncaught SoapFault exception: [Client] Function function_nameis not a valid method for this service
Any help?
If you want to execute a function that SOAP can not find - it is possible that PHP cached the wsdl file.
Add this:
ini_set("soap.wsdl_cache_enabled", "0");
to disable the caching.
Two possible solutions :
I had this problem and finally decided to check my php error log.
In php.ini enable always_populate_raw_post_data = -1
and restart the server .
My PHP version is 5.6.8
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With