cancel
Showing results for 
Search instead for 
Did you mean: 

Getting "Set-Cookie" from response message

Former Member
0 Kudos

Hello XI SDN'ers,

I am calling an external webservice through my "SOAP (Axis)" adapter and I am getting the response. The response header looks like this:

HTTP/1.1 200 OK

Server: Apache-Coyote/1.1

X-Powered-By: Servlet 2.4; JBoss-4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)/Tomcat-5.5

Set-Cookie: JSESSIONID=4DF8F0B8FAF5A1F2D7EE6A0110A33E70; Path=/

Content-Type: text/xml;charset=utf-8

Date: Mon, 26 May 2008 10:07:58 GMT

Connection: close

I want to get this "Set-Cookie" from my initial "Login" response and set the cookie in further "Synchronous Request" so that I won't loose my sessions.

so I wrote my UDF to get this SetCookie:


DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create(
paramNamespace, paramName);

String value = conf.get(key);
return myString;

but I am getting "Null" value.

Please correct me to get "Set Cookie" value from my response!

Thanks & Regards,

Satish.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Check this URL for more clarification:

help.sap.com/saphelp_nw70/helpdata/en/a6/10b98ae47ef14799a918db66ee9477/content.htm - 34k

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b092777b-ee47-2a10-17b3-c5f59380...

Thanks,

Boopathi

stefan_grube
Active Contributor
0 Kudos
Former Member
0 Kudos

Hello Stefan,

I checked that guide already and even we discussed once about the possible corrections. Anyway, now I am able to get the header parameters after updating our systems to SP15 (PI7.0).

The "H2G" says, we'll get the header parameters if we have SP12... but that is not true... we have to update the system with SP15... so please do the necessary corrections in the guide.

Thanks & Regards,

Satish, Dhamodharam.

stefan_grube
Active Contributor
0 Kudos

I will pass the information to the author of the document.

Thanks and regards

Stefan