on 04-29-2008 1:48 AM
Hi experts,
I am working with plain HTTP Adapters, a Java client is sending a HTTP request to XI server......the following url is used
http://server:post//sap/xi/adapter_plain?namespace=<namespace>&interface=<Interface>.
&sap-user=<user>&sap-password=<password>
Now, I understand that, the logon credential needed to reach XI Server is being passed as url parameters and this seems to work.
Is there any other way to pass this information apart from the URL? Does anyone has any sample java code that posts HTTP request to XI/PI and the logon details is sent via code or some mechanism apart from the URL.
Thank you.
Sabbir
Maybe this page helps you:
http://www.kennethballard.com/Projects/HttpClient/readme-java.html
"Call setUserInfo() if a username and password are required to access the given URL."
httpConfig.setUserInfo(user, password);
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sabbir,
I have maintained the user id and pw in SICF transaction for the http service, there you can maintain the log on data, user as XIAPPLUSER and its corresponding password and the procedure you can select as standard logon data.
Thanks,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> I have maintained the user id and pw in SICF transaction for the http service, there you can maintain the log on data, user as XIAPPLUSER and its corresponding password and the procedure you can select as standard logon data.
This is strictly not recommended as this is a security leak.
Regards
Stefan
Hi !
Maybe in the real application the complete url will not be seen by the user, but also you can use the SOAP adapter instead the HTTP adapter to make a HTTP post, using the SOAP you don't need to have the login and password in your http url. There is a "noSOAP" mode in the SOAP adapter that you can use to make non-web service calls, that work as HTTP calls.
Regards,
Matias
ps: please award points if helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.