Dynamic subject in AS2 receiver

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

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

Similar Messages

  • Dynamic Attribute in AS2 Receiver

    Hello,
    in the Seeburger AS2 Receiver channel I have found "AS Message ID" in the last of possible Dynamic Attributes. How do I set this one, so what is the name of the dynamic configuration key. Any idea on this?

    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

  • Dynamically selection of Message Subject in AS2 adapter. Urgent Help..!!

    Hi All,
    I need to send the message to partner by using AS2 adapter.
    And i need to keep the Message Subject by taking dynamically from the payload message.
    ie. Iam sending the Purchase Order to Partner and i need to pass OrderNO which is coming in one field of my strcture to the message subject.
    How i can select dynamically the Orderno and pass into message subject of AS2 Receiver adapter??
    In the Seeburger AS2adpter manual, they provide the answer by using module parameters like
    http://seeburger.com/xi/common/dtsubject   DYNSUBJECT
    But i don't know how to put particular field into it.
    Any idea abt this?
    Regards
    Deepthi.

    Hi Deepthi,
    I think this would help you in configuring Dynamically selection of Message Subject.
    Supported dynamic attributes are:
    •  dtSubject – if the subject parameter is set in the XI message and the AS2 receiver channel is
          configured to use all non-empty or subject attribute, it will be treated as the message subject
          by the AS2 adapter;
    •  dtAS2FileName – the name of the payload. This is an attribute of the Content-Disposition
          header. With this AS2 is compatible with AS2 Filename Preservation draft.
    •  dtAS2ContentType – for Example application/xml, depending on the payload type
    To enable the usage of Dynamic Attributes, there is a special dedicated section in receiver channel.
    Dynamic attributes are used if the “Use dynamic attributes” setting is checked in the receiver channel.
    If the the setting “Use non-empty attributes” is not selected, all known attributes are used for
    configuration if the attribute is present. 
    Mention Check boxes for these
              Use dynamic Attributes
              Subject
    Dynamically set attributes override static channel attributes. Example: the subject attrib
    in receiver channels overrides the channel attribute.
    Here is an example how to set them. Channel tab “Module”->”Module Configuration”:
    Module Key: 1
    Parameter Name: http://seeburger.com/xi/common/dtsubject
    Parameter Value: DYNSUBJECT
    Message Subject:  This subject will be compared with the subject in the received message. This is used to find the correct channel for the inbound message.
    Wildcards are allowed.
    Regards,
    Varun Reddy.K

  • AS2 Receiver Adapter Error

    Hello,
    when trying to send a message using Seeburger AS2 Receiver Adapter I get the following error (strange thing is that it worked before we made some changes, now we changed back and the error occurs):
    Description: AS2 Adapter failure MessageId entry with secondaryId <xxxxxxxxxxxxxxxxxxxxxxxx> does not exist! com.seeburger.as2.AS2Plugin.execute
    The error message is not meaningful to me. I tried all possible combinations but with no result. What could be the reason for this?

    Hi,
    Is your issue solved? Can you check the connection without using Certificates. Looks like issue with Certificates.
    >> When I uncheck the button the flag "SIGN" in the as2 receiver comm channel. The message is sent out to the partner and we get back a negative acknowledgement (also there is an error MIC not verified in comm chan. ). So maybe it is a problem with digital signature? I have checked the receiver agreement, everything there should be fine
    Is your scenario is AS2>XI>AS2 and using Certificates to exchange the messages?
    please deactivate the use of dynamic attributes in the AS2 receiver channel. The dynamic attributes are set in the sender channel, there-fore the receiver channel overwrites the data given in the commchannel configuration with the data from the sender channel. Therefore, this is an issue specific for AS2 -> XI -> AS2 scenarios. Your partner might use the wrong certificate or not find the certificate because of the wrong payload name that was initially set in the sender channel.
    Can you please check the Message Subject and Content Type how it is going using certificates and without using Certificates.?
    -Deepthi.

  • Dynamic Subject in Smartforms (CRM)

    Hi,
    Our requirement is that we want the Dynamic Text in the Subject Line of the mail, whether is it possible ?
    I tried with the putting &, but it displays only the Trxn Number.
    Example : In Subject line we need Trxn Description, Customer No, Customer Name
    Thanks in advance for any solution.
    Regards
    Pethukumar P

    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

  • FileName in the AS2 receiver?

    Hi Guys,
    we are sending a file to the partner with the AS2 and we want to maintain the same file name as the sender. I dont see any adapter specific attributes in the AS2 adapter.
    How can i maintain the same file in the AS2 receiver adapter. any help or suggestions would be appreciated
    Thanks,
    Srini

    Hi sarvesh,
    The problem is resolved using the seeburger AttributeMapper module.
    Thanks,
    Srini

  • AS2 receiver error

    Hi Experts,
    Im getting this error in the AS2 receiver channel:
    Message could not be forwarded to the JCA adapter. Reason: Fatal exception: javax.resource.ResourceException: SEEBURGER AS2: AS2 Adapter failure # Outbound configuration error: Failed to get configuration from DATABASE. Sender configuration incomplete - perhaps AS2ID missing.., SEEBURGER AS2: AS2 Adapter failure # Outbound configuration error: Failed to get configuration from DATABASE. Sender configuration incomplete - perhaps AS2ID missing..
    IDOC to AS2 scenario
    I have already configured the sender and receiver party and put them in the determinations:
    sender party
    receiver party
    I did not put a sender party in the receiver agreement because I get a receiver agreement error
    Any ideas please?
    Thanks,
    Mike

    Hi Ajay,
      I guess these will help you...
    Seeburger AS2 Communication Channel Error
    Re: Asynchronous/sync mdn
    Regds,
    Pinangshuk.

  • As2 receiver channel, SEEBURGER AS2: 500 Internal Server Error

    Hi,
    There is one scenario in our landscape, its running in production, Proxy to As2. The interface working fine for last 2 weeks, today its showing error in As2 receiver channel saying
    Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: javax.resource.ResourceException: SEEBURGER AS2: 500 Internal Server Error # , SEEBURGER AS2: 500 Internal Server Error #
    I have searched in forum, but couldnt get much idea on why this error encounters and how can we resolve it.
    Kindly provide your inputs to help me resolve this.
    Thanks,
    Ruchi

    Hi Ruchi,
    500 means the requested server does not understand the request (the requested service is unknown). The reason is obvisiously outside of PI. You have to contact the 3rd party owner and ask why the system is refusing the request instead of responsing like before.
    Regards,
    Udo

  • AS2 Receiver Error: MIC not verified # unexpected-processing-error

    When sending out a test message using Seeburger AS2 receiver channel I get the following error:
    MIC not verified # unexpected-processing-error
    So obviously this problem is related to digital signature I think? However I get the same error even if digital signature is deactivated in the communication channel.
    Do you have any idea on this?

    Hi ,
    I have been facing this error and tried all the refresh and reimporting of certificate.
    "MIC not verified # unexpected-processing-error"
    could you be bit specific how to fix this ?
    thanks in advance
    Praveen

  • Error dynamic File Name in Receiver File Adapter

    Hi all,
    Dynamic file name for Receiver file Adapter Problem
    my multi mapping look like this in design mode
    messages
         message1
              SD01_E
                   FileName
                   row
         message2
              SD02_E
                   FileName
                   row
    by processing the xml look like this:
    <ns2:SD01_E xmlns:ns2="urn:lsv.de/SAP/XXX">
    <FileName>L40SA939.xiConstant</FileName>
    - <row>
    or
    <ns2:SD02_E xmlns:ns2="urn:lsv.de/SAP/XXX">
    <FileName>L40SA939.xiConstant</FileName>
    - <row>
    in file receivere adapter  i have try this but it dos not work
    payload:SD01_E,1,FileName,1
    Error:com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 0(:main:, row:1, col:0)
    is there any way to have access to Filename  in different root elements??
    regards
    Ralf

    Hi Ralf,
    i think, you need for each XML msg (each different root element) a new adapter -> a new IF determination, new rec agreement and a new channel.
    Regards,
    Udo

  • Dynamic file name in receiver channal

    Hi, All,
    I would like to set dynamic file name in receiver channal. My xml payload will be like this:
    <file_name>file1.txt</file_name>
    <text_content>balabala......</text_content>
    I would like to output an text file which text content will be the value of <text_content>, file name will be the value of <file_name> in the xml payload.
    Is there anyone could help me?
    Helpful answer will be surely awarded. Thanks
    Yang

    Please look at the below description from help.sap.com. You can use the below steps to name the file from a value in the payload. You would have to use File Content Conversion to insert the value of the <text_content> in the file.
    Variable Substitution (Target Directory/File Name Scheme)
    If you set the Enable indicator, you can enter variables for the Target Directory and File Name Scheme. Enter the names of the variables and references in the table.
    ●      Enter each variable that you reference in the Target Directory and File Name Scheme fields without the surrounding percentage sign under Name of Variables in the table.
    The variables can refer to attributes of the message header or elements of the message payload.
    ○       If the variables are to refer to an attribute of the message header, add the prefix message: to the name of the variable under Reference. You can specify the following attributes of the message header:
    sender_party, sender_service, receiver_party, receiver_service, interface_name, interface_namespace,
    message_id (message ID with hyphens, for example 9fbe1ff1-9a0d-11d9-8665-cbf10a126331)
    message_id_hex (message ID in hexadecimal format, for example 9fbe1ff19a0d11d98665cbf10a126331)
    For example, if you want to specify the interface name from the message header in the target directory or in the file name scheme, enter message:interface_name as the reference.
    If one of the message attributes contains characters that are not permitted in a file name, for example \, /, :, *, ?, ", <, >, |, then these characters are replaced by an underscore ("_").
    ○       If the variable refers to an element in XML schema, add the prefix payload: to the information under Reference. The reference then comprises a pseudo path description in the form of a comma-separated list with the schema namea,na,nameb,nb,....
    namea,nameb,...corresponds to the element name and na,nb,... corresponds to the occurrence of the element name at the respective level in the document.
    The description begins at the root of the document and ends at the respective element.
    To reference the element that is in bold in the example, the following expression is used: payload:root,1,e1,1,e2,2
    The parser searches for the first occurrence of the root element at the first level. It then searches for the first occurrence of e1 at the second level and for the second occurrence of e2 at the third level. The content of the last element (u201CExample Valueu201D) is set as the value for a specified variable.
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <dummy>
         <e1>
            <e2>Data_1</e2>
            <f/>
            <g attr="abc">text</g>
            <e2>Data_2</e2>
         </e1>
      </dummy>
      <e1>
         <e2>illegal/value</e2>
         <f/>
         <g attr="abc">text</g>
         <e2 attr="fghij">Example Value</e2>
      </e1>
    </root>
    Thanks
    Praveen M

  • BizTalk AS2 receive location (500.0 error) reported by eternal party when trying to reach BizTalk 2010.

    
    Hi There - 
    We are facing AS2 connection problem with one of our customers. Following is scenario.
    Problem Scenario –
    We BizTalk 2010 server with which we are trying to connect one of our customer’s bank for secure communication.
    Our UAT box  has been done with a successful test connection with that bank however when we move to production server, whenever the Bank try to send any simple .txt file via AS2 protocol, we do not receive the file and bank receive an error following
    message .
     <div><fieldset>   <h2>500
    - Internal server error.</h2> 
      <h3>There is a problem with the resource you are looking for, and it cannot be displayed.</h3> 
    Bank has AS2 setup on following environment.
    AS2 Software Used
    Connect Enterprise
    AS2 Software Provider
    Sterling Commerce  (IBM Mail Slot)
    Platform on which AS2 Software is installed
    AIX
    I have compared the UAT and Production servers AS2 receive URL configurations and these are completely alike.
    Whenever I try browsing the virtual directory setup for AS2 from IIS 7.0 or from
    internet explorer with hostname and virtual directory, I get 500.0 internal error which following post says is absolutely fine, this should not be a problem.
    XXXXXXX
    I have setup the IIS Log trace. Following are the traces from IIS. 
    Action Performed to resolve the issue.
    Compared the UAT and Production server settings both are alike.
     Setup the AS2 receive with reference of following URL .
    http://msdn.microsoft.com/en-us/library/bb727975.aspx
    http://biztalk-dish.blogspot.com.au/2012/07/guidance-on-edi-over-as2-in-biztalk.html
    http://www.biztalkbill.com/Home/tabid/40/EntryId/66/Configuring-BTSHTTPReceive-dll-to-work-on-IIS-7.aspx
    Installed the party certificates by referring following URL
    http://msdn.microsoft.com/en-us/library/aa559902.aspx#step5
    App Pool a/c and (Isolated and Inproc) host a/c and the receive pipline host a/c are same and certificates has been installed by loggin to server with same account .
    Firewall ports are open to accept the traffic, I have to log from network team.
    I tried following URL.
    http://go4answers.webhost4life.com/Example/http-receive-url-without-78425.aspx  (I have suffix the DLL name to the URL which party has to reach.
    Example - http://XXXXXXX/EDIIN/BTSHTTPReceive.dll
    http://hostname/virutalDirectory/BTSDLL
    I have tried resolving 403/ 405 error which sometimes reported in my IIS error log, which generally arrive after reset of IIS 7.0
    Using URL -        
    http://go4answers.webhost4life.com/Example/btshttpreceivedll-405-error-57131.aspx
    http://biztalk-diary.blogspot.com.au/2010/05/btshttpreceive-error-405-method-not.html
    IIS errors has been referenced using following Url
    http://support.microsoft.com/kb/943891/en-us
    following are the error logs from IIS 7.0 log file, whenever party sends any message to our server.
    2013-12-14 19:02:59 10.83.241.83 POST /EDIIN/BTSHTTPReceive.dll - 80 - 10.83.251.4 Jakarta+Commons-HttpClient/3.0-rc4 500 0 0 9812
    2013-12-14 19:03:48 10.83.241.83 POST /EDIIN/BTSHTTPReceive.dll - 80 - 10.83.251.4 Jakarta+Commons-HttpClient/3.0-rc4 500 0 0 343
    2013-12-14 19:04:48 10.83.241.83 POST /EDIIN/BTSHTTPReceive.dll - 80 - 10.83.251.4 Jakarta+Commons-HttpClient/3.0-rc4 500 0 0 406
    Sometimes I find following entries though
    #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
    2013-12-14 20:10:55 ::1 GET /EDIIN - 80 - ::1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.1;+WOW64;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+.NET4.0C;+.NET4.0E)
    301 0 0 453
    2013-12-14 20:10:55 ::1 GET /EDIIN/ - 80 - ::1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.1;+WOW64;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+.NET4.0C;+.NET4.0E)
    500 0 193 15
    Any advice will be a great help.
    Please Note: We have setup other virtual directories for receive HTTP connection using (BTSHTTPReceive.dll) file and these connections has been setup using same user account and are working perfectly fine.
    I repeat,
    >>           I have compared all the configurations for AS2 receive location with other setup on Production for other customers ( this is similar)
    >>           I have cross checked the setting with UAT box where connection with this Bank is working absolutely fine but in production it is NOT and configurations are similar.

    Hi,
    It maybe windows firewall issue. you can try create a Windows Firewall exception if
    Windows Firewall is running on your server. And please refer the blog about 500 error in iis which might helpful:
    http://support.microsoft.com/kb/942031/en-us
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Dynamic URL for HTTP receiver adapter

    Hi all,
    when the XI send the http request to the target system, the format maybe like this:
    header + body the body is including: Prolog, payload and Epilog
    here is about the target system have a 'input' parameter(maybe string type)
    is it possible to pass the 'head + body' these value(or maybe the whole http request message) into input
    i mean is it possible to set the dynamic URL for http receiver adapter like this:
    http://host:port/path?input=<the header and body>
    i have searched the blog Dynamic Configuration of Some Communication Channel Parameters using Message Mapping
    Link:[/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping]
    and the similar threads in the forum
    please give me some advice
    thanks in advance

    When a HTTP server requests the whole message as URL parameters, then I assume that the server also requests an HTTP GET, which is not supported by XI.
    Could you check this?
    Regards
    Stefan

  • How to create a dynamic textarea in AS2

    I am trying to create a dynamic textArea in AS2.  Here is what I have so far:
    import mx.controls.TextArea;
    var myTextArea:TextArea = new TextArea();
    myTextArea.setSize(320, 240);
    myTextArea.move(10, 10);
    addChild(myTextArea);
    I have the textarea component in my libray, but nothing shows up onscreen.
    Help

    Are you sure you want AS2.0? There is no addChild() in AS2.0.
    In AS2.0, make sure you have the TextArea component in your library, importing it isn't good enough.
    An easy way to instantiate a component, say a button, is like so (modify for TextArea or any other component):
    import mx.controls.Button;
    var myButton = createClassObject(Button,"button2",5,{label:"Test Button"});
    usage:
    createClassObject(className, instanceName, depth, initObject)

  • Change the subject on a received e mail

    is it possible to change the subject of a received e mail in order to file it ?

    AFAIK, not with Apple's Mail app. That's doable with Eudora.

Maybe you are looking for

  • Help needed in Logging

    Hi, I have created a custom logging Handler and configured the same in the properties file. This handler has its own Formatter and Filter. When I iterate through the LogManager and print the available Handlers I get a NullPointerException when it pri

  • SQL statement with union clause

    Hi, I have a scenario where i need to generate a sql statement with UNION . Eg: SELECT B.YY_ID, FROM XXXX.YY B WHERE (B.YY_TY= 'as') UNION SELECT B.YY_ID FROM XXXX.YY_ALT_NAME A, XXXX.YY B WHERE (A.YY_TY= 'zx' AND (B.YY_ID=A.YY_ID)" I tried ns1:table

  • Hi i need help on BAPI to Update the ADRT & ADR6 tables

    hi, i need help on BAPI to Update the ADRT & ADR6 tables these are the fields to be updated ADRT-Remark Table ADR6-SMTP_ADDR ADR6-DFT_RECEIV Please guide me what parameters to be passed to update ADR6 & ADRT tables

  • Multi-file OCR quits on error

    When using the "recognize text in multiple files using OCR" function if it runs into an error in one file it quits and neither that one nor any after are done. I don't see a way to change this. This is in Acrobat v9.0.0. And ideas on how to deal with

  • ISR Form Java Iview problem.

    Hello, We are having an ESS Iview named "Hire External Applicant" in Portal. This iview has been customised. I found that to construct this iview "5.     Request Form as Java iView in Enterprise Portal 5.0" section from ISR Cookbook is been used. i.e