function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Suresh440Suresh440 

In PHP how can you clear a WSDL cache?

Hi 

 

  I found in google to delete the WSDL cache files. to prevent future caching, we need to add this line:

ini_set("soap.wsdl_cache_enabled",0);

or dynamically:

 

   But where i need to add this line Could you please help me ?

 

 

$client =newSoapClient('http://somewhere.com/?wsdl', array('cache_wsdl'=> WSDL_CAC


Best Answer chosen by Admin (Salesforce Developers) 
Satish_SFDCSatish_SFDC
<?php
ini_set("soap.wsdl_cache_enabled", 0);

//Other PHP Code to define soap client and login.....
?>

Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.

All Answers

Satish_SFDCSatish_SFDC
Well the link below says you will have to add it to the top of your scripts page, so i runs atleast once.

http://wiki.developerforce.com/page/Turning_off_WSDL_cache

Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.
Satish_SFDCSatish_SFDC
<?php
ini_set("soap.wsdl_cache_enabled", 0);

//Other PHP Code to define soap client and login.....
?>

Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.
This was selected as the best answer