3

I am using SoapExtensionReflector to modify the WSDL sent to the client due to a complex proxy setup. This modification is based on a query string variable:

whatever.com/Service.asmx?WSDL&customaddress=proxy.whatever.com

This works well, and the modification is successful. However, the WSDL is cached by ASP.NET the first time, so a second call to, say...

whatever.com/Service.asmx?WSDL&customaddress=dohicky.whatever.com

will still use the variables from the original call. I would like to disable WSDL caching and force ASP.NET to reprocess the WSDL every time. Is there an easy way to do this programmatically?

3
  • how did you solve this problem? Commented Apr 9, 2015 at 6:25
  • It is possible to add a kind of timestamp on uri? Like whatever.com/Service.asmx?WSDL&customaddress=dohicky.whatever.com&ts=20150810211303? This will force a new request. Commented Aug 10, 2015 at 0:13
  • 6
    Possible duplicate of stackoverflow.com/questions/3180513/disable-asp-net-cache Commented Nov 6, 2015 at 19:21

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.