Flushing a Cached Web Service
When you use WebServices with ColdFusion, the WSDL ‘stub’ is cached in CF Administrator (presumably for performance reasons).
This can be a pain when you need to change the WSDL and you don’t have access to CF Admin to flush the service which is the scenario I found myself in today.
Luckily for me I sit near some ColdFusion peeps who sorted me out with a little Java method (courtesy of the ServiceFactory) to flush a WSDL from a ColdFusion template.
Basically all you need to do is:
1 2 3 4
I also wrapped it up in a little function:
1 2 3 4 5 6 7 8 9 10 11 12 13
Thanks Marko (and Mark)
After the fact I did some googling and found a great read from Doug Boude on Refreshing Cached ColdFusion Webservices Through the Back Door in case you’re interested.