简体   繁体   English

WSDL + PHP + Java(SOAP)

[英]WSDL + PHP + Java (SOAP)

I am working with Java and Php. 我正在使用Java和Php。 I'm calling the Java services via WSDLs from what i generate php-stubs with the tool WSDL2PHP. 我通过WSDLs从我使用WSDL2PHP工具生成php-stubs调用Java服务。 Everything works fine until now. 到目前为止一切正常。 I've added a new method to my java service and re-generated the php-stub. 我已经为我的java服务添加了一个新方法并重新生成了php-stub。 In the php-stub the method is available but when i call the service i'm getting the following error: 在php-stub中,该方法可用,但是当我调用该服务时,我收到以下错误:

SoapFault: Function ("myFunction") is not a valid method for this service

I've tried a lot and googled a lot, and it worked before. 我已经尝试了很多并且google了很多,之前它有效。 My old methods in the same service are always callable and i can run them bu 我在同一服务中的旧方法总是可以调用,我可以运行它们

It's because the SOAPClient caches your WSDL files. 这是因为SOAPClient缓存了您的WSDL文件。 You can disable this feature using: 您可以使用以下方法禁用此功能

soap.wsdl_cache_enabled = "0"; 

Beware, this has a performance impact. 请注意,这会对性能产生影响。 But on your development machine this wont affect things. 但是在您的开发机器上,这不会影响事物。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM