Thank you very much for both of your replies. I am really appreciated for your help.
etran has already something built to parse the HTTP Header, so I believe the only choice I have is to through HTTP authentication, not the form authentication.
yes. sorry for the missing information.
According to etran, they just need the user name, not password, but they need more infor of the user in addition to the user name, so in both databases, the user information must be the same to be authenticated.
i need to pass base 64 format to etran (I don't know if I should encode it or it is going to be encoded automatically through HTTP protocol if it is set in HTTP header) like the following:
I have used some online base 64 encode/decode tools, and I found that after decoding, the following XML format is presented. It will etran's task to decode the base 64 string and parse the info.
to reverse engineer, maybe I need to encode user info into base 64 from xml string like above (by the way, UserXSPRole, SecurityID1...RecipType1-RecipCode1... are all business realted information).
Anyway, I think the first step is to figure out how to set up custom HTTP header and pass it to etran. Later I may need to figure out how to set up the base 64 string manually from xml format (not sure if I have a xml format string and set it to HTTP header, HTTP protocol is going to convert it to base 64 format).
I have done some research, and found out that I may need to go through the following approches:
I can not set custom HTTP header inside a requst. I may need to set up a new http request from servlet, but I don't know how.
I am stucked with all approaches mentioned above, and don't even know if they are correct ways to go.
I hope I make myself clear, sorry if I make you confused.
do you have any idea?