The real culprit of PHP's soap error for no reason: wsdl cache

The real culprit of soap not updating:

When I modified the calling method of the server and updated the wsdl, the parameters of the client were always lost (not all lost, but part of it), which was very frustrating.

The next day I simply added a new method on the server side and updated the wsdl, but the client request reported an error saying that the method was not defined.

Finally found that because php cached the wsdl of soap .

The solution is to modify the php.ini

soap.wsdl_cache_enabled=1 (change to 0),

soap.wsdl_cache_ttl=86400 (change to 0)

two.

It is important to note that both the client and server machines must be changed.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326268424&siteId=291194637