cancel
Showing results for 
Search instead for 
Did you mean: 

HandlerBean - AXIS Framework

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Check this OSS note and see if it is of any help

https://service.sap.com/sap/support/notes/1054986

Sameer

Former Member
0 Kudos

Hello Sameer,

The OSS note you mentioned doesn't relevant to my problem. It talks about workaround of setting SOAP Action.

-Satish.

aashish_sinha
Active Contributor
0 Kudos

Hi,

Have a look into this guide.

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

Regards

Aashish Sinha

PS : reward points if helpful

Former Member
0 Kudos

Hello Aashish,

Thanks for your prompt reply. I already went thro' the guide which you mentioned, but still I couldn't able to get Set-Cookie from the response header.

-Satish.

aashish_sinha
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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