on 03-12-2015 4:30 PM
We are trying to login to external webserver from PI. The web service requires authentication information set in HTTP header(not SOAP header).
The Authentication details are as follows, and it exceeds a length of 200 chars (around 240 )
X-ABC-Authentication: <ABCCredentials><Username>xxx</Username><Password>yyy</Password><IntegratorKey>zzz</IntegratorKey></ABCCredentials>
Could anyone please suggest on how to achieve this.
We have tried 2 options :
I was able to achieve it using module parameter in SOAP Axis adapter. Hence closing the thread.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sneha,
Can you please share which parameter and how you have used it to get it working ?
Hope to hear from you soon.
Many Thanks,
Mudassir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We may not be able to go for Java Mapping.
Is there a way, we can achieve this using SOAP /Axis adapter ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sneha,
Is the tag <ABCCredentials> mandatory?
In http receiver you can set several tags but i think you can't set a hierarchical structure.
Like the last resource you can develop module adapter or at mapping level to do the request via java mapping and to do a dummy receiver.
To do the java mapping this link could be helpful Modifying HTTP headers using Java | W.T.F.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is your PI version?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
May be you can try using http_aae adapter -> "set adapter specific message attributes" -> HTTP Header Fields ?
If you want to save adapter-specific attributes in the message header of the HTTP message, choose Set Adapter-Specific Message Attributes .
Reference :
Configuring the Java HTTP Adapter on the Receiver Channel - Advanced Adapter Engine - SAP Library
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.