Categories


Archives


Recent Posts


Categories


PHP’s WSDL Caching Files

astorm

Frustrated by Magento? Then you’ll love Commerce Bug, the must have debugging extension for anyone using Magento. Whether you’re just starting out or you’re a seasoned pro, Commerce Bug will save you and your team hours everyday. Grab a copy and start working with Magento instead of against it.

No Frills Magento Layout is the only Magento front end book you'll ever need. Get your copy today!

Although the latest version of Magento offers the ability to control how PHP caches the SOAP server’s WSDL file, and my own Mercury API extension offers similar functionality for older version of Magento, sometimes the WSDL caching can still bite you in the butt. While the above features control the caching at the server level, if you’re writing a client script PHP may still be caching the WSDL file.

You can find your PHP WSDL cache files in the tmp directory.

$ ls /tmp/wsdl-*

When you’re working on API files, adding a

$ rm /tmp/wsdl-*

to your clear cache script in a no-brainer. The above command blows away the PHP WSDL cache, and forces it to refetch the file. With that file blown away, you’ll have much less trouble tracking down your

Resource path not callable

Invalid API path

Is not a valid method

SOAP errors.

Copyright © Alan Storm 1975 – 2017 All Rights Reserved

Originally Posted: 15th June 2012