Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Aug 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Store And Forward

    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.

    THANK YOU

    Regards
    Leos1981

  • #2
    Senior Coder Morgoth's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada Remaining Brain Cells: 6
    Posts
    1,402
    Thanks
    2
    Thanked 1 Time in 1 Post
    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.

  • #3
    New to the CF scene
    Join Date
    Aug 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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)?

  • #4
    Senior Coder Morgoth's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada Remaining Brain Cells: 6
    Posts
    1,402
    Thanks
    2
    Thanked 1 Time in 1 Post
    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.

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You're thinking of the Message Queueing service in NT/2K/XP/2003

    This link may get you started: http://msdn.microsoft.com/library/de...l/msmqtips.asp
    Check out the Forum Search. It's the short path to getting great results from this forum.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •