cancel
Showing results for 
Search instead for 
Did you mean: 

How to set HTTP header field "cookie" with http receiver adapter?

Former Member
0 Kudos

Hi,

I am using http receiver adapter (not axis) in a scenario. I could not set a parameter with key cookie in http header. Is there some kind of restriction to set it? I am able to set others like connection and create custom fields using ASMA and dynamic key configuration via UDF on mapping.

Could you please comment on, is cookie http parameter special or noneditable by PI's http adapter? I am looking for a solution without editing any abap code...

Regards,

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

We are having the same problem as described above. Any luck?

Former Member
0 Kudos

Hello all,

I have a similar scenario. Did you manage to solve this issue?

I have to query an http service and get a session cookie in response if successfully authenticated. After this, I have to use the session cookie to interact with the service to get data. How do I use the session cookie in the request that I send out to the service provider?

Thanks,

0 Kudos

HI,

I have a similar problem .Did you manage to fix this requirmenmrt?

Regards,

Senthil

Former Member
0 Kudos

By the way version is PI 7.0 sp21

Thanks

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Have you tried with the field Set-Cookie? If not ASMA then using http query string might be?

Former Member
0 Kudos

Hi Baskar,

thank you for your reply but I did not get the point why should I try with set-cookie? I am trying to create cookie http header field not set-cookie. I dont think query string will help either.

baskar_gopalakrishnan2
Active Contributor
0 Kudos

IMO, we can only set sessions and set cookies. Creating cookie or sessions is HTTP Server's internal feature. We cannot create one.

Former Member
0 Kudos

I believe it is possible since axis adapter provides very same functionality. Let me summarize my scenario may be it helps:

I am trying to call series of webservice lets say in a BPM. First service (login service) will provide me with a session id (in http header with key Set-Cookie) then I will call another service which has that session id in its http header with key cookie then I am going to logout. So I am testing the second part now, but it doest let me send cookie http header parameter.

I hope I clarified a bit more my problem.

Regards,

Former Member
0 Kudos

Any idea?