Setting Adapter Specific properties

Hi All,
I have the following Scenario :
Source system ; SAP R/3   - Client Proxy is created to send the data
Destination System : JMS(Websphere MQ) . Receiver JMS channel is used to deliver the message.
I have written a proxy in R/3 system to post the data to JMS.
The receiveing Application is expecting the Message in byte format and it is also expecting a custom property "File Name" as part of the JMS Message properties.
I just stuck up how to set these in my XI message at the sending system and resolve the same at receiver JMS channel and deliver to the target application.
Thanks in advance.
Regards
Renu

Hi,
http://help.sap.com/saphelp_nw04/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/content.htm
have a look at this link from java.sun.com, there you can read details (predefined JMS properties, types you can use, etc..) about JMS properties.
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/jms/Message.html
If you're talking about "Adapter-Specific Message Properties"
then this is the same as for any other adapter:
have a look at my weblog on "Adapter-Specific Message Properties" usage:
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
also check:
http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
and on this page:
http://help.sap.com/saphelp_nw04/helpdata/en/f4/2d6189f0e27a4894ad517961762db7/content.htm
you'll see what kind of "Adapter-Specific Message Properties" can you get from your mapping program
Thanks
Swarup

Similar Messages

  • Adapter development: binary data and adapter specific properties?

    Hi,
    We have succesfully developed our own SFTP adapter based on the J2SSH Maverick library (http://www.sshtools.com/showMaverick.do) and the sample file adapter that comes with XI.
    There are 2 features we would like to implement as well, but lack the necessary documentation and sample code.
    <b>1st Binary data</b>
    We do not succeed in transporting binary data via our SFTP adapter (both text and xml go fine).  While debugging, we see that the binary data are correctly picked up, but the actual payload appearing in message monitoring is much larger.  When we write the message to a file again, the data have changed (size has e.g. increased importantly from 127180 bytes to 218198 bytes).  According to the sample adapter code,  the contenttype "application/octet-stream"  should be specified.  But the standard XI file adapter itself seems to specify "application/octet-stream".
    <b>2nd Adapter specific properties (DynamicConfiguration)</b>
    How can we set adapter specific properties in our own adapter code?  Where are the Java docs of the API?  Is this somewhere documented?
    If you would have more information (or pointers), please post it as a response to this message.
    Kind regards, Guy Crets
    <b>Code snippet:</b>
    XIMessageFactoryImpl mf = new XIMessageFactoryImpl();
    Message msg = mf.createMessageRecord(fromParty, toParty, fromService, toService, action, actionNS);
    msg.setDeliverySemantics(DeliverySemantics.ExactlyOnce);
    // In case of XML documents it is not necessary to set the contentType or encoding
    // But: take care that the encoding definiton in the XML document corresponds to the encoding used
    if (msgText.indexOf("<?xml") != -1)
      // Check whether the payload is a XML document. If not, treat it as binary to demonstrate how
      // binary main documents work
      // First create a XML Payload                    
      XMLPayload xp = null;
      xp = msg.createXMLPayload();
      xp.setText(msgText);
      xp.setName("MainDocument");
      xp.setDescription("XI AF Sample Adapter Input: XML document as MainDocument");
      msg.setDocument(xp);
    // In case of binary documents use the Payload super class methods to fill the XMLPayload object
    else
      // Check whether the payload is a XML document. If not, treat it as binary to demonstrate how
      // binary main documents work
      // First create a XML Payload                    
      XMLPayload xp = null;
      xp = msg.createXMLPayload();
      //xp.setContentType("application/octet-stream");
      xp.setContentType("application/xml");
      xp.setName("MainDocument");
      xp.setDescription("XI AF Sample Adapter Input: Binary as MainDocument");
      xp.setContent(msgData);
      // Finally set the main document in the message
      msg.setDocument(xp);          
    TRACE.debugT(SIGNATURE, XIAdapterCategories.CONNECT_AF, "Message object created and filled.");
    ModuleData md = new ModuleData();
    md.setPrincipalData(msg);

    Hello Moorthy,
    I know this part of the documentation.
    So I set the indicator within the communication channel.
    Now, I have to fill the dynamic configuration during my mapping. My code looks like following:
    DynamicConfigurationKey keyURL =  DynamicConfigurationKey.create("http://sap.com/xi/XI/System/HTTP", <b>XXXXX</b>);
    // access dynamic configuration
    DynamicConfiguration conf = (DynamicConfiguration) param.get (StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    // set value
    conf.put(keyURL, url);
    So what has to be filled instead of XXXXX ?
    Regards,
      Marc

  • How to set adapter specific message attributes on Pi 7.1 inside a Java map.

    Hello,
    how can I set adapter specific message attributes in a Java mapping on PI 7.1.? The TransformationInput grants access to the DynamicConfiguration but the TransformationOutput doesn't. I have found threads refering to the old way of implementing Java mappings (e.g. Get dynamic filename in a Java Mapping (NOT UDF)). But there doesn't seem to be one refering to the actual PI.
    Kind regards,
    Heiko

    Using DynamicConfiguration from the TransformationInput works.

  • Setting Adapter-Specific Message Attributes in an Adapter Module

    Hi!
    I want to set Adapter-Specific Message Attributes in an Adapter Module. Is it possible to configure the Variable Transport Binding in this way?
    Best regards,
    Daniel

    I'd like to know it as well.
    I've checked out the XI AF API but didn't find much.
    One thing that I've observed is that since Module API can treat any Message Class (not only XI Messages), I guess it won't have any specific methods for XI messages (hence, no dynamic configuration). But you could try to get the message object and then treat it as an XI Message (you would be doing the steps that the Java Mapping API do before it calls a Java Mapping class) to get the Map objects (which include the parameters).
    Good luck on it, and let us know if you have any progress!
    Regards,
    Henrique.

  • Where is the Set Adapter Specific Attributes indicator on the comm channel?

    I really think I must be losing it guys.
    We are SP16, we went directly to SP16 from 9, so we skipped over SP14.
    When I go into a communication channel and choose an adapter(File) for instance. I cannot find the Set adapter-specific message attributes indicator anywhere!
    Someone please tell me where it is located! If possible please send a screenshot to [email protected]
    Thanks,
    chris

    Hi,
    did you reimport SAP BASIS component to IR ?
    just like specified in question 3 (adapter section)
    in the XI FAQ?
    /people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
    Regards,
    michal

  • Setting adapter specific message attributes

    hi xi guroos.
    i just got one doubt in a file to file scenario.
    if i set adapter specifec message attributes in sender file CC.
    and if  i enabled file name checkbox.
    some xi prof saying that the file at recievr directory will get created with the same filename which we r using at source directory .
    if this is the case then no need to create any UDF for getting same file name i n mapping and one more doubt is
    then what is the use of typing filename at reciever file adapter.
    u r anwer will be appreciated.
    waiting for u.
    bey.
    regards.
    seeta ram.

    <i>some xi prof saying that the file at recievr directory will get created with the same filename which we r using at source directory .</i>
    Its true.
    <i>if this is the case then no need to create any UDF for getting same file name i n mapping and one more doubt is</i>
    By marking the checkbox, at receiver u could have the same filename as that of sender. But this is the only requirement, UDF is not required.
    However if u want the filename as a value in Message mapping, u need the UDF. And moreover, there r many more header parameters that could be accessed in UDF
    <i>then what is the use of typing filename at reciever file adapter.</i>
    If u doesnt tick the checkbox (in most of the cases), then XI should know with which name file should be created
    Hope each doubt is cleared
    <i>[Reward if helpful]</i>
    Regards,
    Prateek

  • Set adapter specific message attribute in graphical mapping

    Hi,
    I'm trying to set the mail reply to field in email messages sent by mail receiver adapter.
    To do this, I use the ASMA and developped my own UDF
    public String setMailFrom(String mailFrom, Container container) throws StreamTransformationException{
    DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
        "http://sap.com/xi/XI/System/Mail",
        "THeaderREPLY-TO");
    String valueOld = conf.get(key);
    if (valueOld != null) {
        String valueNew = mailFrom;
        conf.put(key, valueNew);
    return mailFrom;
    This works but I needed to asign the result of the udf to a node of my target message in order for the udf to be called.
    Is there a way to call a UDF without assigning the result to anything in the target message....
    Is there a better way to modify the ASMA than using a UDF in a mapping.
    Thanks.

    assign it to the root node of the target message.
    Also use exceptions in your code so that you can do independent testing.
    Additional ref:
    /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name

  • Setting adapter specific re-schedule time period

    When sending message in asynchronous mode, if it fails, XI will automatically re-schedule it for a few times later, for a certain amount of repeat times.(I believe our current setting, the retry period  is 5 minutes, and for 3 times)
    The problem: We have different adapters, and for some adapters, we have special requirement of retry period. My question is, can I set up the retry period per adapter level?

    Hi Wgao,
    Actually this  depends on the Inbound or Outbound Queues.. , I don't think so it is depending on the Interface Level/Adapter Level.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b0/df5f3c8dde1c67e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/75/66ee407552742ae10000000a155106/content.htm
    Hope this helps,
    Regards,
    Moorthy

  • Adapter specific properties (http receiver adapter)

    Hi,
    does anybody know the technical name for the HTTP destination of a http receiver adapter.
    The documentation lists only the names URLParamOne to URLParamSix and HeaderFieldOne to HeaderFieldSix.
    Neither the technical name for URL nor for a HTTP destiantion are mentioned.
    Regards,
    Marc

    Hello Moorthy,
    I know this part of the documentation.
    So I set the indicator within the communication channel.
    Now, I have to fill the dynamic configuration during my mapping. My code looks like following:
    DynamicConfigurationKey keyURL =  DynamicConfigurationKey.create("http://sap.com/xi/XI/System/HTTP", <b>XXXXX</b>);
    // access dynamic configuration
    DynamicConfiguration conf = (DynamicConfiguration) param.get (StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    // set value
    conf.put(keyURL, url);
    So what has to be filled instead of XXXXX ?
    Regards,
      Marc

  • Adapter-Specific Message Attributes

    Hello,
    I have this configuration in a sender file adapter:
    File adapter java class
    classname=com.sap.aii.messaging.adapter.ModuleXMB2File
    mode=XMB2FILE
    ##Adress for XMB endpoint
    XMB.httpPort=8000 <- Para XI desarrollo
    XMB.httpService=/tmp <- Directorio de XI
    ##File Adapter specific parameters
    file.createDir=1
    file.targetDir=/DATOS/INTERFACES/RRHH <- Directorio de R/3
    file.targetFilename=XXXX0*.txt
    #file.writeMode=addTimeStamp
    ##xml conversion properties if mode XMB2FILEWITHCONVERSION is specified
    #xml.addHeaderLine=0
    #xml.headerLine=
    #xml.fieldFixedLengths=15,25
    #xml.fieldSeparator=;
    I just wanted to add the Adapter-Specific parameter but I do not how to do it, for keeping the Filename.
    Can anyone help me?
    Thanks in advanced,
    Luis

    Hi Moorthy,
    I know I can do it like that, but for some reasons I can not use that way, so the only way for me for moving one file from R/3 to XI, was the one described above, and it works fien if I set a Filename in my file receiver channel in XI.
    But if I set adapter specific options in the receiver I got an error, because there is no dynamic configuration in the xml message header...So I need to configure the sender adapter in the R/3 for setting that parameter up .
    Michal in the help link that u give I couldnt find anything useful...
    Thanks anyway,
    Luis

  • Error using XI HTTP adapter specific message attribute URL parameters

    Hi XI gurus, in our XI 7.0 SPS11,
    we have problem using URL parameters of plain HTTP receiver adapter.
    If I set Adapter specific message Properties in communication channel and activate switch for Apply URL parameters (using Parameter 1 to 5) filling them using message mapping, we have no effect; instead we have error "Dynamic Header - Missing Message Attributes: Fields/Parameters".
    We carried out this test:
    1. not using adapter specific message attribute and setting
    a static URL target with fixed parameters it runs correctly.
    2. using adapter specific message attribute for target
    URL and URL parameters both doesn't runs correctly.
    3. using adapter specific message attribute only for target
    URL doesn't run correctly.
    These attribute key used for URL parameters:
    URLParamOne
    URLParamTwo
    URLParamThree
    URLParamFour
    URLParamFive
    Namespace: http://sap.com/xi/XI/System/HTTP
    Can you solve this issue? Are there oss notes, corrections, ...
    Thanks in advance.
    Marco Tricase

    Some other test done with TCP gateway.
    Activated adapter specific message properties for
    *URL
    *HTTP Header fields (one header field named "lisca")
    *URL Parameters (one param named "objectType")
    The HTTP message catched by TCP Gateway
    POST /csl/cslinker HTTP/1.0
    content-type: text/xml; charset=UTF-8
    content-length: 318
    connection: close
    accept: /
    user-agent: SAP Web Application Server (1.0;700)
    host: 10.10.43.94:54000
    accept-encoding: gzip
    <?xml version="1.0" encoding="UTF-8"?>
    seems nothing has been generated, and obviusly URL and params have been set in message mapping.
    Hope some guru has been solved the issue ...
    Pasquale Rossiello

  • How does the adapter specific parameters gets filled up?

    Hello,
    How do I check adapter specific parameters?
    like, I am making the Soap action parameter to dynamically fill in the receiver soap adapter.
    I want to check if the correct (one of the 4 actions) action was filled in action field
    how do I check?
    thanks
    nikhil.

    Hi,
    You need to test the scenario from RWB testing to get the proper results about the dynamic settings for adapter specific parameters.
    Refer
    Accessing Adapter-Specific Attributes through User Defined Function
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
    Dynamic Configuration of Some Communication Channel Parameters using Message Mapping
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
    Re: Adapter-Specific Message Attributes
    setting adapter specific message attributes
    Thanks
    Swarup

  • Application specific properties file

    Hello
              Can any body help me how to build application specific properties file
              so that we can have independent application specific server with its own
              java class path environment.I read the procedure in beasys manuals but i
              could'nt understand clearly.
              Setting application-specific properties
              The weblogic.properties file is only accessible by WebLogic; that is,
              you can't add application-specific properties to the weblogic.properties
              file and expect that they will be read at startup time. However, you can
              set properties for your own application by creating a separate
              properties file. This file can be created and used in two ways:
              Put your application-specific properties file in the same directory as
              your weblogic.properties file. You can then use the following code to
              access the properties:
              Properties props = new Properties();
              String propertiesName = "myapp.properties";
              T3ServicesDef services =
              T3Services.getT3Services();
              String location =
              services.config().getProperty("weblogic.system.home") +
              java.io.File.separator + propertiesName;
              props =
              props.load(new DataInputStream(new FileInputStream(location)));
              Thanks in advance
              Ravi
              

    Hi, Ravi.
              I think I am "WeiG".
              Basically, you can not put your own properties on weblogic.properties. Every
              property in weblogic.properties managed by WLAS is pre-registered in WLAS
              internally. WLAS will print "Fund undefined property ...." messages for the
              un-registered property in weblogic.properties files.
              To use your application-specific properties, the paragraph you read suggests
              you create your own file, put it in $WL_HOME, and use the example code to
              read your own file.
              Hope it helps.
              Cheers - Wei
              Ravi <[email protected]> wrote in message
              news:[email protected]...
              > Hi Purdy
              >
              > Who is WeiG,can you tell me please
              >
              > Thanks
              > Ravi
              >
              > Cameron Purdy wrote:
              >
              > > I know that WeiG has answered this before ... try to ask Wei directly.
              > >
              > > --
              > >
              > > Cameron Purdy
              > > http://www.tangosol.com
              > >
              > > "Ravi" <[email protected]> wrote in message
              > > news:[email protected]...
              > > > Hello
              > > >
              > > > Can any body help me how to build application specific properties file
              > > > so that we can have independent application specific server with its
              own
              > > > java class path environment.I read the procedure in beasys manuals but
              i
              > > > could'nt understand clearly.
              > > >
              > > > ************************
              > > > Setting application-specific properties
              > > > The weblogic.properties file is only accessible by WebLogic; that is,
              > > > you can't add application-specific properties to the
              weblogic.properties
              > > > file and expect that they will be read at startup time. However, you
              can
              > > > set properties for your own application by creating a separate
              > > > properties file. This file can be created and used in two ways:
              > > >
              > > > Put your application-specific properties file in the same directory as
              > > > your weblogic.properties file. You can then use the following code to
              > > > access the properties:
              > > >
              > > > Properties props = new Properties();
              > > > String propertiesName = "myapp.properties";
              > > >
              > > > T3ServicesDef services =
              > > > T3Services.getT3Services();
              > > > String location =
              > > > services.config().getProperty("weblogic.system.home") +
              > > > java.io.File.separator + propertiesName;
              > > > props =
              > > > props.load(new DataInputStream(new FileInputStream(location)));
              > > >
              > > > ****************************
              > > >
              > > >
              > > >
              > > >
              > > > Thanks in advance
              > > > Ravi
              > > >
              >
              

  • SOAP Use Adapter-Specific Message Properties and Variable Transport Binding

    Hi Friends,
       I am new to use to Soap Adapter. Please help me out bellow doubts.
       1.When you use Use Adapter-Specific Message Properties and Variable Transport Binding .
       2. Where exactly  we r using below parameters.
    Remote User : (technical name: SRemoteUser )
    Remote Host : (technical name: SRemoteHost )
    SOAP Action (technical name: SHeaderSOAPACTION )
    To transfer further header fields, set the relevant indicator. You can then store the following attributes and their values in the XI message header:
    Variable Header : (technical name: XHeaderName1 )
    Variable Header : (technical name: XHeaderName2 )
    Variable Header : (technical name: XHeaderName3 )
    Thanks&Regards
    G.Bhanuprakash

    Hi,
       1.When you use Use Adapter-Specific Message Properties and Variable Transport Binding .
    SAP Help says both are needed to be checked when you want to process adapter attributes
    Configuring the Receiver SOAP Adapter - SAP NetWeaver Exchange Infrastructure - SAP Library
    These attributes can be get/set using dynamic configuration and their technical names are what you have pasted:
    Remote User : (technical name: SRemoteUser )
    Remote Host : (technical name: SRemoteHost )
    SOAP Action (technical name: SHeaderSOAPACTION )
    To transfer further header fields, set the relevant indicator. You can then store the following attributes and their values in the XI message header:
    Variable Header : (technical name: XHeaderName1 )
    Variable Header : (technical name: XHeaderName2 )
    Variable Header : (technical name: XHeaderName3 )
    Remote User - the username used to send a message to the adapter engine using SOAP
    Remote Host - hostname which the remote user used
    SOAP Action - SOAP Action of the XI webservice (sender) / SOAP Action of the receiver webservice
    Variable Headers are additional key-value pairs in the HTTP Header that could be accessed in the XI Header using dynamic configuration. The limit is only three though.
    Regards,
    Mark

  • Adapter Specific Message Properties not available in SP 15

    Hi
    In the <b>/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14 blog Michal is saying that <b>Adapter Specific Message Properties </b> option in File adapter  will be avalible from XI with SP 14. But i am using SP 15 and i am not getting this option in the file to file adapter. Can u please tell me the why its not available.
    Thank & Regards
    Ravi Shankar B

    Hi,
    Try reloading SAP BASIS software component version of SP15 only (check ) into repository.This might enable that option in the ftp/file adapter.
    also see the below links
    /people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules
    /people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules
    /people/michal.krawczyk2/blog/2006/10/09/xi-dynamic-configuration-in-adapter-modules--one-step-further
    Regards
    Chilla

Maybe you are looking for

  • Web application startup - recommendations?

    Hi, If you were to start a hosted web application business (on a quite low budget), what would be your database setup? Some requirements: - suports up to 10.000 concurrent users - there are not really very much transactions, more reads and quite heav

  • Pre IDS Implementation Check List for Sig Tuning

    Hi Experts, IDS signature tuning can get quite involved. To make sure nothing important is overlooked, is there a Check List that can be used? If not, what are some of the critical items that should be known beforehand? A couple items are obvious e.g

  • Lightroom VS Camera Raw

    I'd appreciate some input. I've been using lightroom 3.2 for some time and really like it for organizing my photos and most editing chores. I had been using PSE for what I couldn't do in Lightroom. I've recently switched to PS CS5, something I should

  • GATHER_STATS job collect stats for 'static' tables

    Oracle version: 10gR2 If a business table hasn't changed (No DML) in the last 10 days, will oracle's default stats collection job DBMS_STATS.GATHER_DATABASE_STATS_JOB_PROCstill collect stats of this table?

  • Update BP address

    I am having a pickle of a time trying to update the Business Partner default Bill To address. Which fields must I complete for this to work? thx Rick