View Full Version : Store And Forward

08-16-2004, 09:53 AM
Dear All,

Hai, I am trying to passing data ( in xml string ) from 1 server to another server. I using microsoft MSXML2.ServerXMLHTTP to passing the xml. ie: call http://www.mysite.com?xml=XMLDATASTRING.

Now, i meet a problem. that is when the data had been processed in SERVER A, and the data then will compile into xml string and pass it to SERVER B to update the database in SERVER B ( By using MSXML2.ServerXMLHTTP). But now the SERVER B is temporary not available. I had to find out a method to handle this senario. Does anyone got any suggestion?

I hope I can put all the xml string in a queue ( when SERVER B is not available), so when the SERVER B is available, the xml data will automatic send to server B.



08-16-2004, 10:46 AM
I have an idea.

When you want to send your information to server B, to find out if it was sent, you need server b to tell server A it was accepted. If server B does not response. Server A will continue to send the information. If server B does not accept the xml file after a specific time, we will stop tring to send the xml file, and give up. This is called a timeout.

The way you will go about doing this might be tricky I am not sure how it can be done. You can store all the xml files in a database, with an timeout field, telling the database it has timed out after the script gives up. When server B accepts the xml file and responses to server A, you can then have a script that deletes the xml files from the database.

Maybe someone else will give my insight into this situation.

08-17-2004, 04:19 AM
THank Morgoth, actually I have same idea with u. But i get information from my senior, they said that is a service/function in window 2k/nt which allow me to put all the xml data in a queue. ( i think it may similiar with email exchange)?

08-19-2004, 03:11 AM
I am not to sure how the function would work, I just know that there are a few ways to do it. Either using a MySQL database or allow a server to connect to the database you use. You could use some sort of queue like the e-mail queue which is on most IIS servers. I wouldn't know the steps on how to make it work though.

Roy Sinclair
08-19-2004, 03:40 PM
You're thinking of the Message Queueing service in NT/2K/XP/2003

This link may get you started: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmqqc/html/msmqtips.asp