Click to See Complete Forum and Search --> : e-commerce
rraapp
04-16-2004, 07:29 AM
How can we comunicate two web apps running on different servers on different domains ?
E.g.
As part of their purchase app, COMPANY1 fills an asp page (JavaSscript) that hrefs a COMPANY2 web page passing data (item. quantity, price, delivery date) and wants to receive the commitment of COMPANY2 about acceptance of the transaction before commiting itself the purchase.
How can it be done ?? Sessions variables don't work, cookies written by COMPANY2 page cannot be read by COMPANY1 page, and so on ......
This is a very frequent issue on trading tarnsactions (mutual commitment) but I'm getting lost when trying to do it into web scenarios.
Is it possible ?? How ?
Thanks in advance.
RAP.
Chaze
04-17-2004, 12:58 PM
Use a form to past the details to another web apps
Ex.
<form method="post" action="http://www.company2.com">
<intput name="name" value="company1">
</form>
PeOfEo
04-18-2004, 01:08 AM
you can send data from server to server with asp.net using system.net.sockets. I am not sure how you can sent packets in asp classic.
rraapp
04-20-2004, 04:32 AM
Originally posted by Chaze
Use a form to past the details to another web apps
Ex.
<form method="post" action="http://www.company2.com">
<intput name="name" value="company1">
</form>
I don't understand the way COMPANY2 page can communicate interactively to COMPANY1 page the message confirming the transaction. How can COMPANY1 page be waiting for that message after submitting the order to COMPANY2 page ??
I thank your help and interest.
R. Aquilino Pujol
buntine
04-20-2004, 05:36 AM
The contents of the HTML form will be sent to the server which accomodates the COMPANY2 web site via the form collection.
To access these values, COMPANY2 would use the Request object.
Response.Write("Form control value one: " & Request.form("controlName"))
Regards,
Andrew Buntine.
rraapp
04-20-2004, 05:45 AM
Originally posted by rraapp
I don't understand the way COMPANY2 page can communicate interactively to COMPANY1 page the message confirming the transaction. How can COMPANY1 page be waiting for that message after submitting the order to COMPANY2 page ??
I thank your help and interest.
R. Aquilino Pujol
Yes, but the problem arises when COMPANY2 accepts the order and must answer the COMPANY1 page (waiting for that answer anyway), really this is the point where I don't know how to do it. How can COMPANY1 page stay "hearing" the COMPANY2 page answer, each page in different server and domain, no sharing of session variables, no sharing of cookies (unless I lack information about these matters). How COMPANY1 page (active and waiting) can determine and get COMPANY2 answer ?
Thanks for your help.
R. Aquilino.
buntine
04-20-2004, 07:11 AM
The same concept applies, COMPANY2 will send the answer back to the original server.
Regards,