PCK SP14 Sapmple Adapter

Dear all,
I have a question regarding the sample adapter which is described in the PCK documentation. Is this one functional or just only a skeleton for further own developments? I have tried to set up a loopback scenario as described in the manual, but it seems the adapter does not run. If I go into monitoring the Adapter is shown, but i was not able to get details; it is not listed if I retrieve "installed and started" adapters.
Any hints for me? I'm using PCK SP14 deployed on WebAS SP14.
Thank you very much!
Prinz

Hi Kleiner,
   You can test the Sample Adapter, it is not only just skeleton for own development.I have tested it on Decentralized Adapter Engine.The same way you can test it on PCK. You need to upload your metadata in a perticular namespace.And in monitoring if the adapter is not started means u haven't deployed the Adapter. Have a look at this weblog
/people/gowtham.kuchipudi2/blog/2006/01/04/testing-sample-adapter
regards,
Gowtham K.

Similar Messages

  • Difference between Standard PI 7.31 SP14 Rest adapter VS Advantco Rest Adapter

    Hi,
    I have a requirement which need to connect Restful webservices( JSon format). and my current version is on PI 7.31 SP11
    I have to chose the best options of REST adapter which is avialable in the market.
    So far I identifyed two options one is '3rd party Advantco REST adapter" and another one is 'Standard REST Adapter which is avilable from PI 7.31 SP14'
    If i chose standard REST adapter which is avilable on PI 7.31 SP14 then I only do 3 more SP version upgrade, if I chose 3rd Party Advantco REST adapter, for cost prospective I need to spend money.
    My question is here, which is the best option for Rest adapter requirements out of these options? Please suggest me.
    Thanks & Regards,
    Sateesh N

    Hi Heiko - There is no standard adapter available from SAP for invoking restfull services.
    Even the wiki which you are referring leads to advantco's REST adapter.
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/03/07/integrating-rest-services-on-pi
    There is a simillar adapter from Ka Te
    http://www.kate-group.com/portfolio/restful-adapter-for-sap-pi/
    Reference : https://scn.sap.com/thread/3518130

  • PCK no IDOC Adapter

    Hi
    it seems that the [SAP PCK |http://help.sap.com/saphelp_nw04/helpdata/EN/99/115281baba404890d2561617a78409/frameset.htm](Partner Connectivity Kit) does not come with IDOC Adapter. 
    Is that really true ?   Seems strange that I'd have to use the RFC Adapter to say post in a Order to R/3 system...rather than via IDOC.

    Yes, the PCK and the non-cenral AAE do not have plain HTTP, IDoc or WS-RM adapter.
    This will be future enhancements of the PCK and AAE.

  • Roles issue after patched PCK SP14

    I udpated pck from sp9 to sp14, now I want to Assign roles in Security Provider, but function is disabled, How to enable it? I installed successfully last time. but at that time, sap team in my company installed both a ABAP system and java system. they can assign the role using a gui tool without using visual admin. now the system is all java -based. it must use visual admin to assign roles. but how to do it? who help me?
    Message was edited by: Spring Tang

    it is so easy, but i ignore it:), there is a toolbar button on the upper side, click it to change the state to Midify state

  • PCK loopback trouble in SP14

    Hi,
    We try to use the PCK to test adapter development. According to help.sap.com you should be able to configure a loopback scenario by setting some xi adapter properties in visual admin, our values are:
    xiadapter.internal devModePCK
    xiadapter.isconfig.url http://localhost:50000/MessagingSystem/receive/AFW/XI
    xiadapter.isconfig.username pckreceiver
    xiadapter.isconfig.password saptech
    When posting messages it indeed tries to post them back to the PCK but we get the following error:
    Transmitting the message to endpoint
    http://localhost:50000/MessagingSystem/receive/AFW/XI using connection AFW failed, due to: com.sap.aii.af.ra.ms.api.MessagingException: Could not parse XMBMessage due to invalid content type for SOAP: TEXT/HTML.
    Anybody seen this before?
    rgds Johan Göthberg

    1. did you test the url in browser
    2. does the sap sample adpater's namespace map with namespace in sap xi adapter xi in visual admin?
    3. the jndi is something like deployedAdapters/<adaptername>/shareable/<adaptername>
    the adapter name is the name of your archive, if your archive is myadapter.sda, and your jndi is deployedAdapters/myadapter/shareable/myadapter
    4. can you try the file apdater in pck first
    Message was edited by: Spring Tang
    Message was edited by: Spring Tang

  • XI PCK (SP9) Loopback Example

    Does anyone have the definitive documentation on getting this to work in SP9?

    Testing sap adapter on PCK
    1.     Prerequisite:
    My current PCK is SP14
    2.     Configure the property in service SAP XI Adapter XI in visual administrator
    Reference document: Partner Connectivity kit ->Adapter and Module Development ->Example Adapter and Example Module -> Configuration Objects for Adapter
    Test in the browser the url specified in xiadapter.isconfig.url using the username in xiadapter.isconfig.username and password in xiadapter.isconfig.password
    The property xiadapter.adapterTypeNamespace keeps default value http://sap.com/xi/XI/System  
    3.     Configure the file adapter inherent in PCK as sender and receiver to make sure the testing environment is ok
    For configuring the file adapter, find the help doc in Partner Connectivity kit->Adapters->File/FTP Adapters to configure the channel:
    Find help doc in Partner Connectivity kit ->Adapter and Module Development ->Example Adapter and Example Module -> Configuration Objects for Adapter Test to configure agreement
    4.     Test the file adapter whether it works. If not working, I am not clear too.
    Check adapter channels whether it configured right: http://host:port/mdt/amtServlet
    Check adapter agreement whether it configure right: http://host:port/MessagingSystem/monitor/auditlog.jsp.
    5.     Get the sample adapter from the PCK named sample_ra.sda
    6.     Change the property xiadapter.adapterTypeNamespace to value http://sap.com/xi/XI/Sample, due to the sample adapter using this namespace.
    7.     Deploy the sample_ra.sda using sdm tool
    8.     Upload the metadata named SampleRA.xml located in sample_ra.sda to the server: http://host:port/CPACache/schemaupload.jsp. Specify the adapter type to JCA and adapter namespace to http://sap.com/xi/XI/Sample complicant to the info denoted in RA.xml in sample_ra.sda.
    9.     Configure the sample adapter in pck like file adapter.  In the dropdown list, you select the “JCA|http://sap.com/xi/XI/Sample”. Pck address is  http://host:port/pck/start/index.jsp
    10.     Test the sample adapter, if it is not ok, maybe I missed someone, please tell me.
    Check adapter channels whether it configured right: http://host:port/mdt/amtServlet
    Check adapter agreement whether it configure right: http://host:port/MessagingSystem/monitor/auditlog.jsp.
    P.S. 1.the namespace in xiadapter.adapterTypeNamespace need be compliant to the adapter namespace being tested. I got it from forum. Just followed it
        2. For my own scenario, I need to use my own adapter and file adapter to work together, I just change my own adapter’s namespace to http://sap.com/xi/XI/System.
    Message was edited by: Spring Tang
    added adapter monitor
    Message was edited by: Spring Tang
    Message was edited by: Spring Tang

  • How to create a module for File Adapter

    Hi,
    I read somethings about module in Adapters.
    What I need to create a EJB? I need to generate a jar? Where I put it?
    Do they have anything about this or a step by step? I want to create a module fpr File Adapter
    Tks.

    Hi,
       >>>What I need to create a EJB?
           If you have NDS or Ecclipse you can create them automatically.
       >>>I need to generate a jar?
          Yes you need to generate a .Jar for that Ejb.
       >>>Where I put it?
          Put that .Jar in .Ear file. and then deploy it on to the Xi server or PCK or Decentralised Adapter Engine where ever u want to use.
       >>>Do they have anything about this or a step by step?
          Yes.Step by step procedure for creating module is available.You can get them at the links given above by others.
    Regards,
    Gowtham K.

  • Custom JCA Adapter / Application Error - Message.setErrorInfo() ??

    Hi All,
    I was looking for how to create a sensible Application Error in a custom JCA adapter and was excited to find the following page in the PCK info on Adapter Development:
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/53d6409ff68631e10000000a1550b0/frameset.htm
    The part of interest being:
    <i>
    The following methods are available to enable you to read error information in the form of an ErrorInfo object from the message, or to set the error information in a message.
    Message.getErrorInfo()
    Message.setErrorInfo()
    If the synchronous response message is an application-error message instead of an application response, it must call setErrorInfo(myErrorInfo) for receiver adapters.</i>
    However, I can't find these methods, or indeed the "ErrorInfo" object anywhere in the AF classes - does anyone know it's whereabouts? Or is the above page just out of date? If so, what is the new approach for creating Application Level Errors in a custom JCA Resource adapter (not Exceptions - I can do that)
    Many thanks,
    Chris

    Well, you can get the latest jars from the SMP (Service Marketplace) directly.  These jars are in the <i>XI ADAPTER FRAMEWORK CORE 3.0</i> component.  Basically, http://service.sap.com/swdc  then Support Packages and Patches->SAP NetWeaver->SAP NETWEAVER->SAP NETWEAVER 04->Entry by Component->J2EE Adapter Engine (PI/XI).   There you'll see the XI ADAPTER FRAMEWORK CORE 3.0 link.
    OR here is the direct link for the SP19 (latest) of <a href="https://smpdl.sap-ag.de/~swdc/012002523100009492712006D/SAPXIAFC19P_4-20000272.sca?_ACTION=DL_DIRECT">SAPXIAFC19P_4-20000272.sca</a>
    Within this is <i>aii_af_lib.sda</i> which has the jars.  You can use winzip or winrar to open .sca, .sda files.
    Regards,
    Jin

  • Error in Scenario -   XI to PCK

    While transferring the file from XI to PCK I am getting the following message in the monitor. Can somebody  please enlighten me about the error.
    <Trace level="3" type="System_Error">HTTP-client: error response= com.sap.aii.af.ra.ms.api.DeliveryException: Could not create Message from TransportMessage. Reason: com.sap.aii.af.ra.ms.api.MessagingException: com.sap.aii.af.ra.ms.api.MessagingException: Could not parse XMBMessage due to Cannot find Main Header in XMBMessage - check the message version</Trace>
      <Trace level="3" type="T">HTTP-client: closing...</Trace>
    The file I am trying ot send is
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:CFP_SENDER_MT xmlns:ns0="HTTP://PCKXI.WORLDBANK.ORG">
       <SEND>
          <TF_Number>12</TF_Number>
          <TF_Desc>1212</TF_Desc>
       </SEND>
    </ns0:CFP_SENDER_MT>
    I would provide furhtur detials if required. Thanks in advance.

    It seems that you have not addressed the PCK with XI adapter.
    Check this.
    Regards
    Stefan

  • XI-PCK integration: features

    We would like to use a B2B integration based on XI<->Partner Connectivity Kit. In particular, we would like to send/receive XML documents to/from an Oracle DB connected to the PCK via JDBC adapter.
    Is there anyone who already experienced PCK?
    I read it's possible to digitally sign XML documents coming from XI (XI protocol); is it true?
    Any idea about implementation effort?

    Luigi,
    We have very limited experience with the PCK.  Both the PCK and XI itself will support digital signing in 3.0.  In our setup with XI 3.0 SP4, this is not yet the case.
    As an alternative, we have been using the HTTP adapter with HTTPS to communicate with business partners.
    Regards, Guy Crets

  • Multiline BAPI return structure  and RFC Adapter

    Since SP14 RFC Adapter check return structure of RFC function.
    But how it works if BAPI returns multiline BAPIRET2?
    Will adapter loop all elements and perfom commit only if <b>all</b> alements don't have errors.

    I'am about this:
    <i>As of SP 14 support for commit handling for single BAPI calls was added to the RfcAdapter receiver channel. If activated in the receiver channel setting, the received XI message will be executed as synchronous RFC (sRFC) in the receiving system. This is also true for asynchronous (QoS EO) XI messages to receive and analyze the execution result by the RfcAdapter.
                   The received response is parsed by the RfcAdapter to get the BAPI return parameter with name "RETURN". This return parameter can be of BAPIRETURN, BAPIRET1 or BAPIRET2 types. The "RETURN" parameter is checked for the response status (field TYPE) which can take following values:
                  1. 'S' : Success
                  2. 'I' : Information
                  3. 'W' : Warning
                  4. ''  : Empty String
                  5. 'A' : Abort
                  6. 'E' : Error
                   If the response contains one amongst the first four response status then it implies that the BAPI was successful. If the response contains one amongst the last two response then the BAPI failed. If the BAPI "RETURN" parameter is of not of type ABAP structure rather of type ABAP table, a empty table is also considered as successful execution result.
                   In case of a successful execution the BAPI function module "BAPI_TRANSACTION_COMMIT" is called within the same context to trigger the commit of the BAPI. In case of a failure the BAPI function module "BAPI_TRANSACTION_ROLLBACK" is executed by RFC Adapter which rolls back the changes.</i>

  • Messaging system and XI Adapter

    Hi Experts,
    I've came across a scenario /people/siva.maranani/blog/2005/05/25/understanding-message-flow-in-xi which explains "message flow in XI".
    Q1. my question is under "RETURN JOURNEY" section in Point 1. the author is saying "So the XI Integration server will send the message to the messaging system of the Adapter Engine (AE)" i want to know what is message system and its purpose? will it store converted messages.
    Q2. wht does an XI Adapter do and wht is the purpose of using it?
    thanks
    Faisal
    points will b rewarded for useful answers.....

    Hi Abdul,
    Q1. my question is under "RETURN JOURNEY" section in Point 1. the author is saying "So the XI Integration server will send the message to the messaging system of the Adapter Engine (AE)" i want to know what is message system and its purpose? will it store converted messages.
    http://help.sap.com/saphelp_nw04s/helpdata/en/8f/d906d01f77fa40a4c84683c3f8326f/frameset.htm
    Purpose
    You use the Adapter Engine to connect the Integration Engine to SAP systems (RFC adapter) and external systems. You use the various adapters in the Adapter Engine to convert XML- and HTTP-based messages to the specific protocol and format required by these systems, and the other way around. 
    Q2. wht does an XI Adapter do and wht is the purpose of using it?
    Purpose
    You configure the XI adapter to exchange messages with an Integration Engine. Both XI 3.0 and XI 2.0 message protocols are supported. You also use the XI adapter to exchange messages between SAP Exchange Infrastructure and the Partner Connectivity Kit (PCK).
    You can use security settings to sign messages and check the signature. You can encrypt and decrypt message payloads.
    Features
    ·        To receive XML messages from a sender system, configure the sender XI adapter.
    If messages are sent from the Integration Server to the PCK, you must create a sender XI adapter in the PCK.
    ·        To send XML messages to a receiver system, configure the receiver XI adapter.
    If messages are sent from the PCK to the Integration Server, you must create a receiver XI adapter in the PCK.
    XI Adapter in the Integration Server
    A communication channel with a receiver XI adapter can be created automatically for business systems that are defined in the System Landscape Directory. See also: Creating Communication Channels Automatically
    regarding security setting,, check below
    http://help.sap.com/saphelp_nw04/helpdata/en/86/0222417c22f323e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/06/e92041c877f623e10000000a155106/frameset.htm
       XI adapter sends the data through XI protocol which works on HTTP and XML.
    So, security for XI adapter means
    1) HTTPS(Communication channel security)
    2) Message Level Security( You can send messages further in encrypted form)
    The communication via web service may have advantages, if you want communicate with non XI systems.
    In your scenario, there is direct communication between XI engines, so you can go for XI adapter. The XI adapter which is normally used to configure the exchange of messages with in an Integration Server, canbe extended to exchange messages between the two Integration Servers in the scenario.
    Please verify if if you have the common SLD for both XI systems. its preferable to go for seperate SLDs
    Check out the similar threads, XI to XI scenarios:
    XI adapter there is one option "Security Settings"..
    You can do client authentication, 128-bit encryption etc
    btw,we can do kind of data encryption in the mapping with java classes and you can pass the value.. but it is just a data level or message level
    But generally use cerfticates in the adapters for the secuity purpose. these will help you to give more inputs
    /people/rahul.nawale2/blog/2006/05/31/how-to-use-client-authentication-with-soap-adapter
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0650f56-7587-2910-7c99-e1b6ffbe4d50
    Thanks,
    Satya Kumar

  • Enhancements in SP14

    Hello
    We have upgraded XI from SP09 to SP14. But we could not view the adapter specific features available in SP14 like adapter specific message properties as described in the weblog
    /people/sap.user72/blog/2005/10/01/xi-new-features-in-sp14
    In SAP-GUI also its showing SAP_BASIS version 14 and in Integration Builder also its showing Service Pack level as 14. So we can assume that patch was applied correctly(SPAM is showing success and also SAPInst has completed each step correctly).
    After applying ABAP and Java patch we deployed the necessary .sca files (SAPXIAF14_0-20000273.SCA, SAPXIAFC14P_4-20000272.SCA, SAPXITOOL14P_3-20000274.SCA) using SDM which was successful.
    Can anyone know what is that is missing?
    Regards
    Rajeev

    hi,
    have a look at:
    http://server:port/sap/monitoring/ComponentInfo
    and check Software Components 
    you'll find SP versions of jave components over there
    Regards,
    michal

  • The same filename from a sender to a receiver file adapter - SP14

    Hi Expers,
    I Have Gone through the link which is given bu Michal.
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Here My Questions are.........
    1.Should we give any file name in the receiver side Adapter in this scenario.?????
    2.How wil be the Sender and Receiver Communication channel Parameters????
      What Are they???????
    Please Clarify me...
    Regards
    Khanna

    Hi Rajesh,
    Is your query related to sending the file name from the source xml document to the reciever file adapter. If so this can be achieved.
    Pls. do the following.
    1. In the mapping program that you are using populate the filename coming from the source into the target root element.
    2.Sender adapters can write adapter-specific attributes to the message header; these can then be evaluated at configuration time
    3. To change the adapter-specific attributes of the message header by using message mappings, you access the required classes of the mapping API by using a mapping runtime constant.
    <b>Note: You donot need to specify any filename in the receiver communication channel.</b>
    To access the classes DynamicConfiguration and DynamicConfigurationKey by using the mapping runtime constant DYNAMIC_CONFIGURATION, use the method getTransformationParameters() of the container object.
    Create an simple user defined function in the mapping and use the following code.
    Imports: com.sap.aii.mapping.api.*;
    Parameter: String filename
    Paramter: String filename;
    filename = fileName + ".DAT";
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
    conf.put(key, filename);
    return filename;
    You donot need to hard code the value of the filename in the file adapter for your interface.
    In SXMB_MONI, when you see the pipeline services you would see that the value of the filename is populated in the message payload.
    Thanks
    Indranil

  • Problem: The same filename from a sender to a receiver file adapter - SP14

    Blog : /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    My Problem:
    The thing works for me and i am able to get my input files name as my output file name. But one thing i noticed is that in my target message, the field where i have mapped the code it always returns the value "null" but finally when the file is created i get the required result.
    My input file name is input.txt and i get the same name in my output file too.
    In sxmb_moni if i check DynamicConfiguration link i see the following
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!-- Response
    -->
    - <sap:DynamicConfiguration xmlns:sap="http://sap.com/xi/XI/Message/30">
    <sap:Record namespace="http://sap.com/xi/XI/System/File" name="SourceFTPHost">10.25.116.98:21</sap:Record>
    <sap:Record namespace="http://sap.com/xi/XI/System/File" name="Directory">/input/test</sap:Record>
    <sap:Record namespace="http://sap.com/xi/XI/System/File" name="SourceFileTimestamp">20060228T112200Z</sap:Record>
    <sap:Record namespace="http://sap.com/xi/XI/System/File" name="FileType">bin</sap:Record>
    <b><sap:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">input.txt</sap:Record></b>
    <sap:Record namespace="http://sap.com/xi/XI/System/File" name="SourceFileSize">770</sap:Record>
    </sap:DynamicConfiguration>
    But when i check my mapped field i see
    <field3>BodyC</field3>
    <keyfield>02</keyfield>
    <field5>BodyE</field5>
    <field6>BodyF</field6>
    </Body>
    - <Trailer>
    <keyfield>03</keyfield>
    <b><field2>null</field2> -> Null value instead of input.txt</b>
    </Trailer>
    </ns0:MT_Putfile>
    The code i have used to map the field2 of the trailer is the following ....
    <i>DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileType");
    String valueOld = conf.get(key);
    return  valueOld;  </i>
    Any clues ?

    Gosh this is spooky
    Anyway i tried with that line of code but it throws me an error during activation ...
    Activation of the change list canceled Check result for Message Mapping mm_IS | http://t-systems.com/Shabarish:  Starting compilation  Source code has syntax error:  /usr/sap/TXT/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map387c7300a9ac11da9d280011256afae8/source/com/sap/xi/tf/_mm_IS_.java:104: cannot resolve symbol symbol : method getTransformationParameters () location: interface com.sap.aii.mappingtool.tf3.rt.GlobalContainer DynamicConfiguration conf = (DynamicConfiguration) container.getGlobalContainer().getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); ^ 1 error
    The code is :
    DynamicConfiguration conf = (DynamicConfiguration) container.getGlobalContainer().getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    //DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    //String valueOld = conf.get(key);
    String valueOld = conf.toString();
    return  valueOld; 
    Thanx Renjith so far .. but i hope this gets resolved (else i will loose my sleep thinkin abt the situation)

Maybe you are looking for

  • Problems with iomega External Hard Drive on MacBook Air

    Hi community! I'm experiencing some problems with my MacBook Air and an external hard drive and I'm wondering if anybody would be able to help me out. I own a MacBook Air running Mac OS X 10.7.3. When I connect my iomega 500GB external hard drive, th

  • Weird lFTP og in problem

    My computer has developed a weird FTP fault. When I try to log in to the server via DW8 it takes a long time and then eventually, if it logs in at all, it displays the root folder with no files. There's no + to expand the file listing and after one o

  • PL/SQL: Function returned without value in authentication schemes

    Hi all, finally i did the authentication shemes based on my function and my own table ,thank you all for help :-) ,but now when i enter 1-correct user name &wrong password <it is gonna work,the authentication workin fine > i am gonna get <Invalid Log

  • AJAX Callback

    Hello everyone, I am attempting to use the Callback feature for ApEx. I have tried to use a provided Oracle sample to just print a simple "Hello World" type of process using AJAX Callback. It appears that my code does not execute at all so I am not s

  • Changing ALV Header

    I have been using the following table to be displayed in ALV grid: DATA: BEGIN OF gt_display OCCURS 0,        pernr LIKE pernr-pernr,        stat2 LIKE p0000-stat2,        begda LIKE p0002-begda,        endda LIKE p0002-endda,        famdt LIKE p0002