cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic subject in AS2 receiver

Former Member
0 Kudos

hi experts,

I have a scenario in which i am sending data to third party using AS2 adapter.

My scenario is PROXY->XI->AS2. In AS2 receiver adapter I need to use dynamic subject.

For that I have used adpater module "localejbs/Seeburger/AttribMapper"

*PARAMETER NAME:-- http://seeburger.com/xi/common/dtSubject*

PARAMETER VALUE:-- DYNSUBJECT

while mapping in IR I am passing one field(strSubject) as input data to the below code:-

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

DynamicConfigurationKey keySubject = DynamicConfigurationKey.create( "http://seeburger.com/xi/common/dtSubject", "DYNSUBJECT");

conf.put(keySubject, strSubject);

The value of strSubject should be the subject in AS2 message.

The scenario is working fine but I m getting below error in communication channel:

Exception caught by adapter framework: AttribMapper:Could not evaluate expresion DYNSUBJECT . Error: Unexpected token <EOT> at position 0. ( expected

Help will be appreciated

Thanks

Jaideep

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks

Former Member
0 Kudos

hi all,

The above error got solved. Now while communication channel monitoring I can see

SEEBURGER/AttribMapper: Setting dynamic property http://seeburger.com/xi/common - dtSubject =

But in soap document there is nothing for dynamic configuration.

help will be appreciated

thanks

Jaideep

prateek
Active Contributor
0 Kudos

When you see this message in sxmb_moni, could you see this value under DynamicConfiguration tab under Soap Header?

Regards,

Prateek

Former Member
0 Kudos

No Prateek It's not coming there..

Thanks

Jaideep

prateek
Active Contributor
0 Kudos

DyamicConfiguration tab is not present or the value is not present inside that?

Regards,

Prateek

Former Member
0 Kudos

Let me expalin you the complete thing.

In mapping i m using this UDF for dynamic subject.

DateFormat dfCurrentDate = new SimpleDateFormat("yyyy-MM-dd");
DateFormat dfCurrentTime = new SimpleDateFormat("HH:mm:ss.SS");
Date dCurrentDate = new Date();
String strCurrentDate = dfCurrentDate.format(dCurrentDate) + "T" + dfCurrentTime.format(dCurrentDate) + "Z";



String strSubject="Literal"+ "_" + strCurrentDate;

// Dynamic Subject

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


DynamicConfigurationKey keySubject = DynamicConfigurationKey.create( "http://seeburger.com/xi/common/dtSubject", "DYNSUBJECT");

conf.put(keySubject,strSubject);

return "";

In receiver service I have used "localejbs/Seeburger/AttribMapper" module.

Parameter name http://seeburger.com/xi/common/dtSubject

Parameter value @http://seeburger.com/xi/common/dtSubject/DYNSUBJECT

In moni I can see the dynamic configuration tab(neither Tab nor value)

But in RWB comm. channel monitoring I can see in Audit log but not in SOAP document.

Hope i have cleared you..

Thanks

Jaideep

Former Member
0 Kudos

hi,

Thanks for your quick response.

I am not able to fine the module name for dynamic subject in AS2 receiver, in provided link.

Thanks

Jaideep

RameshGulipall
Active Participant
0 Kudos

Hi,

Can you chack the below link...

Regards,

Ramesh

Former Member
0 Kudos

hi Ramesh,

Thanks for your quick response. I am not able to fine the module name in that link..

Could you please tell the module name..?

Thanks

Ramesh

Shabarish_Nair
Active Contributor
0 Kudos

i think it is the dynamicconfigurationbean that was used - http://help.sap.com/saphelp_nw04/helpdata/EN/45/da2239feb22e98e10000000a155369/content.htm

former_member750652
Contributor
0 Kudos

please ignore this post as i understood ur question wrong

Edited by: Ramakrishna kopparaju on Aug 13, 2009 2:29 PM