on 08-13-2009 11:52 AM
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
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i think it is the dynamicconfigurationbean that was used - http://help.sap.com/saphelp_nw04/helpdata/EN/45/da2239feb22e98e10000000a155369/content.htm
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
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.