| Author |
Web Page query
|
Bharadwaj Adepu
Ranch Hand
Joined: Dec 30, 2007
Posts: 99
|
|
HTTP Website(Site1) has to send data to an HTTPS website(Site2), Site 2 processes the data, and wants to send the result back to Site1
Q1. How is the session maintained?
Q2.How is the data transfered via POST or Response.Redirect
|
SCJP 1.5
|
 |
Vikas Kapoor
Ranch Hand
Joined: Aug 16, 2007
Posts: 1374
|
|
Bharadwaj,
When domain changes session is vanished. The only way I know is passing data in query string. POST doesn't work only GET i.e. using query string.
(I am not very much sure.)
|
 |
ujjwal soni
Ranch Hand
Joined: Mar 28, 2007
Posts: 391
|
|
Hi,
You can maintain session on other domain via query strings or using database.....
for example www.xyz.com?username=ujjwal&password=xyz
|
Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
|
 |
Alok Kushwah
Ranch Hand
Joined: Jul 10, 2007
Posts: 31
|
|
Here one website is working as client to otherwebsite.
Solution 1:
Here HTTP website (application C) is client of HTTPS website (application S).
application C have to use httpClient (http://hc.apache.org/httpclient-3.x/) and submit the request to application S. you can use POST method also.
***************************************************
Solution 2:
I will go forward and say your HTTPS website is exposing webservice.
Expose webservice from application S. User web service client in apllication C to consume the webservice.
|
 |
 |
|
|
subject: Web Page query
|
|
|