We have a program (A.exe) with GUI and a toolbar who does NLP stuff with some text. In that toolbar we have function A which transform the text by adding some xml tags. Someone here (the boss) would like that I create a Web Service calling function A. It told me about Dynamic Data Exchange (he used it few years ago), I saw something like SendMessage.
The Web Service will be used by someone over the Internet : sending a text and getting the result as xml. The GUI program could not be started when someone calls the WS because it is too slow, so someone sugggests to launch this A.exe once for all and the WS will ask this A.exe by sending a DDE call. I don't know how A.exe will react in case of concurrent calls.
The Web Service will:
- save the text file in a directory
- call the A.exe
- the A.exe will compute the text file and create the xml file
- the WS will loop until the xml file exist
- the WS will get the xml and send it as stream to the original caller
I would like to note that:
- DDE is old and seems to need a DDE server capable program.
- SendMessage is a little bit obscur as I am a Java developer.
- I did not try named or anonymous pipes to make that call as suggested.
Thank you.
PS: It is an heresy to build a WS calling a server-side program with UI, isn't?