CF 9 Web Service Stubs re-compile nightly
I'm running an old CF 9 server and application where it calls out to a remote web service every half hour between the hours of 7:30 am and 11:00 pm every day through the job scheduler.
At the 7:30 am run, it always re-compiles the web service stubs every day. This generates a GET when it is requesting the fresh WSDL from the remote endpoint, and then it generates a POST when it is invoking the normal method it uses to pass data. Subsequent calls to this remote endpoint do not cause the stubs to re-compile, and the GET is subsequently also not generated, that is, until 7:30 am the next day. The problem is that I am trying to get rid of that first GET at 7:30 am, which is another way of saying I don't want the system to re-compile the stubs every day.
I have checked the code, and ancient though it is, it uses cfinvoke webservice="https://someendpoint.asmx?wsdl" method="SomeMethod" returnvariable="returnXML". I'm not sure if the refreshWSDL attribute existed in CF 9, but in any case, it's not being called.
I have investigated whether either the application or an operating system function might be deleting those stub files on a nightly basis, but can find no evidence that this is happening. I know that deleting the stubs will cause them to recompile the next time the web service is invoked, and it may be that this is happening, and that I just haven't found the cause of it yet.
But if there are any other mechanisms by which CF will force the stubs to get re-compiled, other than by deleting them, or by using the refrshWSDL directive either on the cfinvoke tag or via the CreateObject function, I'd appreciate any details. Or if I'm off-base and it's something completely different, I'd also appreciate any suggestions.
Thanks
Rob
