C
cj
I currently have a program that maintains a connection to a business
partner. Communication to our business partner is done via a web
service but it's not just wide open. We initiate a session with them by
sending an xml login string via this web service and we get back a
session id. Subsequent xml submissions to them are done with the same
service but the xml strings contain transactions (an element in this xlm
transmission is the id we received).
What I'm saying is anytime I talk to them I do so in code with
respstring = proxy.process(xmlstring)
The first time I talk to them xmlstring = an xml string with our login
info and we receive an xml string with a session id number.
Subsequent contacts to do business with them are also done in code by
saying respstring = proxy.process(xmlstring) but xmlstring = an xml
string with transaction info and our session id number. They will only
allow us to have 1 session open with them at a time.
Currently my program starts a session with them when it's loads then it
constantly queries a sql database via stored procedure and if it gets
data it sends the request via the web service to get a response which it
places into another table. So the sql tables become a queue for this
process allowing my clients to pound me with requests which I take first
come first serve and pass to our business partner.
I'd like to offer an additional way for my clients to pass requests to
me--hopefully to replace the sql tables. I would like to offer a web
service of my own for incoming requests but somehow I'd have to queue
them up as I can only have 1 connection to our business partner. How
would you handle this?
partner. Communication to our business partner is done via a web
service but it's not just wide open. We initiate a session with them by
sending an xml login string via this web service and we get back a
session id. Subsequent xml submissions to them are done with the same
service but the xml strings contain transactions (an element in this xlm
transmission is the id we received).
What I'm saying is anytime I talk to them I do so in code with
respstring = proxy.process(xmlstring)
The first time I talk to them xmlstring = an xml string with our login
info and we receive an xml string with a session id number.
Subsequent contacts to do business with them are also done in code by
saying respstring = proxy.process(xmlstring) but xmlstring = an xml
string with transaction info and our session id number. They will only
allow us to have 1 session open with them at a time.
Currently my program starts a session with them when it's loads then it
constantly queries a sql database via stored procedure and if it gets
data it sends the request via the web service to get a response which it
places into another table. So the sql tables become a queue for this
process allowing my clients to pound me with requests which I take first
come first serve and pass to our business partner.
I'd like to offer an additional way for my clients to pass requests to
me--hopefully to replace the sql tables. I would like to offer a web
service of my own for incoming requests but somehow I'd have to queue
them up as I can only have 1 connection to our business partner. How
would you handle this?