on 05-28-2008 10:39 AM
Hello XI SDN'ers,
Can any one tell me, How to use this HandlerBean to read the Set-Cookie from the header of the SOAP response message?
Thanks & Regards,
Satish.
Check this OSS note and see if it is of any help
https://service.sap.com/sap/support/notes/1054986
Sameer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Have a look into this guide.
Regards
Aashish Sinha
PS : reward 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.
Hi,
Handlers are important elements of the Axis framework. They are processing steps at runtime that process and forward a message. You can assemble them into processing chains like modules in the module processor.
The following modules are provided for using the Axis framework in the SOAP adapter:
● The HandlerBean module (AF_Adapters/axis/HandlerBean) calls an Axis handler.
You use the module to call the Axis handler that you want to use.
● The Adapter Framework module (AF_Adapters/axis/AFAdapterBean) converts the Axis message object to an Adapter Framework message object and the other way around.
You use the module at the boundary between message processing in the Adapter Framework and in the Axis framework.
To transfer the HTTP header parameter Set-Cookie to the XIu2019s Dynamic Configuration header called SetCookie add a module of type AF_Adapters/axis/HandlerBean to your processing sequence of the SOAP receiver Communication Channel created before. It has to be inserted just before the predefined module u201Cxiresu201D. You may choose an arbitrary name as module key.
Have a look into this and refer to last 3 settings link
http://help.sap.com/saphelp_nw04/helpdata/en/45/a4f8bbdfdc0d36e10000000a114a6b/content.htm
Regards
Aashish Sinha
PS : reward points if helpful
Hello Aashish,
I already did exactly the way you described, I added the Handler:
In the module name: AF_Adapters/axis/HandlerBean and the respective parameter name and value as follows:
handler.type : java:com.sap.aii.axis.xi.XI30DynamicConfigurationHandler
key.a : read http://sap.com/xi/XI/System/HTTP SetCookie
location.a : header
value.a : Set-Cookie
and also I wrote the UDF and Message Mapped to get the Set-Cookie from the response message:
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create(
"http://sap.com/xi/XI/System/HTTP", "SetCookie");
String value = conf.get(key);
return value;
but still, I didn't see any SetCookie value...
-Satish
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.