PHP5 webservice and “Strange” procedure not found / function not found problems
I was working with PHP5 Webservice and had a head spinning experience because of WSDL cache. Everything was working fine on my local machine, but when i uploaded to the server, it said:
[faultstring] => Function ("getKodeMK") is not a valid method for this service [faultcode] => Client [faultcodens] => http://schemas.xmlsoap.org/soap/envelope/ )
I was wondering if i have a mistake in php code or may be in wsdl file. I try to use the SAXON and zvonSchematron to analyze my wsdl file. The result say that the wsdl file is perfect. But why, when i upload it to my server, php always say that Function is not a valid method / Procedure Not Pressent.
After hourly scanning my code and i’m sure that my code is perfect, i try to ask mr. google and found some forum & site talking about this error. They said, just turn off the wsdl.chace feature from configuration file (or via ini_set() method), and viola… the problem was solved.
Yes… that because if we turn on the wsdl.chace feature, PHP will not reload the wsdl file for some ammount of time. For debugging mode, we MUST turn off this option. Also, if we update the wsdl file, you must wait PHP to reload the wsdl file again (configured with soap.wsdl_cache_ttl) or simply ise ini_set() to turn off this caching method.
ini_set("soap.wsdl_cache_enabled", "0");

KoronX said:
hmm….cenggih
1 hour after the fact.