L
Larry Bud
We have a web service that a client can send XML to, and that XML is
appended to a file on the server for each call.
At night, a separate processing console app will process the XML.
How would you recommend this interaction to occur so the web service
doesn't step on the toes of the processing app and vice versa?
I thought of having the console app move the XML file out of the
current folder and put it somewhere else. The WS will then recreate
the XML file for the next day. But if the WS is accessing the file, I
won't be able to move it. Should I just loop for a certain amount of
time until the file is able to be moved?
Then in the WS, if the file is being moved and is access, do the same?
appended to a file on the server for each call.
At night, a separate processing console app will process the XML.
How would you recommend this interaction to occur so the web service
doesn't step on the toes of the processing app and vice versa?
I thought of having the console app move the XML file out of the
current folder and put it somewhere else. The WS will then recreate
the XML file for the next day. But if the WS is accessing the file, I
won't be able to move it. Should I just loop for a certain amount of
time until the file is able to be moved?
Then in the WS, if the file is being moved and is access, do the same?