Sample adapter with NWDS

Hi gurus
Could any one give me a description of how to use the sample adapter (sample_ra.sda) with NWDS so that I would be able to compile it successfully.
[I need to know what files to import and how i do it]
Thanks in advance
Jason

> - How do i import this new adapter in XI?
> - Do i need to package it in a certain way?
you have to deploy the adapter to the XI/PCK with SDM.
For this your create an RAR (ressource adapter archive) with WinZip and store this in an SDA file again with WinZip.
See here:
http://help.sap.com/saphelp_nw04/helpdata/en/4f/eae1401b52b533e10000000a155106/frameset.htm
The adapter meta data are uploaded to Integration Repositiory, so you can create communication channels for your adapter.
> - Is it obligatory to have a PCK?
No, but with a seperate testing system you minimize the risk to disrupt the XI system with bad code
> The documentation on SDN are not very clear on the matter.
We will work on that soon
Regards
Stefan

Similar Messages

  • Error in Service designer with sample adapter

    Hi all,
    I try to use SampleAdapter. When I create a master service based on Sample Adapter (wich is correctly in the classptah on the server). I received the following message : The Master Service does not have an adapter definition.
    I ignore it and I create an alias for this Master service. I test it in request manager and the service created with the sample adapter work ??
    What can I do to supress error message in Service Designer ?
    Thanks

    Vasanthakumar,
    in my previous experiences with internal/external parties communication, I've found out that the best practice is to create an integration scenario and then create the configuration scenario from scenario wizard. It is much simpler and easier.
    Briefly, you'll have to create a dummy party/service in order to "wrap" your internal system, since the external party should not receive information regarding internal systems (Business system name, for example).
    Regards,
    Henrique.

  • Sample Adapter - Error in NWDS for import stmt of class PermissionMode

    Hello,
    I downloaded the latest code of Sample Adapter from the SAPNote 1004000.
    I am trying to build the code in SAP NWDS. I am getting an error for the import statements -
    import com.sap.aii.security.lib.KeyStoreManager;
    import com.sap.aii.security.lib.PermissionMode;
    I looked into the jar for the package com.sap.security. There is no 'lib' folder inside this. These two class are also not in any of the folders and subfolders in this package.
    Now for the KeyStoreManager Class, I found a jar sap.comtcjekeystore_apiAPI.jar which contain a class by the name of KeystoreManager in the package com.sap.engine.interfaces.keystore.
    1. Is this KeystoreManager the same class file as KeyStoreManager?
    2. In which jar can I find the class PermissionMode ?
    Best Regards,
    Neeraj
    Edited by: Neeraj Kumar on Aug 20, 2009 10:44 AM

    Hello Neeraj,
    Now as I mentioned earlier, when I go to com.sap.aii.security package in the jar com.sap.aii.sec.svc_api.jar there is no 'lib' folder. Also there is no security.class in any of the subfolders in com.sap.aii.security .
    - In PI7.1 security.class is in folder ext, check whether you can find the folder ext.
    - Your SampleAdapter has already implementation code in it, as you mentioned in the source there are import statements, so the point to focus is to make your source error free, after compile.
    - In case you have the sap.comtcsecssfcore.jar added to your build path, try to reimport the two classes, still if it show error try to close and open your module project.
    Regards,
    Prasanna

  • Problem with PCK 7.1 SP07 JCA Sample Adapter

    Hello!
    I have a Problem with the JCA Sample Adapter in the PCK 7.1 SP07. I will test the Configuration ( http://help.sap.com/saphelp_nwpi71/helpdata/en/f7/0c2441509fa831e10000000a1550b0/content.htm ) .
    But the receiver channel has a Massage processing failure: u201CMessage processing failed. Cause: java.lang.Exception: JNDI name of the ra connectionFactory is not configured. Go to the directory and create a value with name 'JNDIName' and value 'deployedAdapters/<ra name>/shareable/<ra name>' as module configuration data of the module 'ModuleProcessorExitBean'u201D
    In the JNDI-Browser of Netwaver Administration canu2019t found JNDIName from directory ('deployedAdapters/sample_ra/shareable/sample_ra). I have located the name deployedAdapters/com.sap.aii.adapter.sample.ra/shareable/com.sap.aii.adapter.sample.ra and change this in the receiver channel  u201CTo_Au201D. But I have the same problem.
    I hope you can help me!
    Thanks & Regards
    Stefan

    Hello!
    Yes I followed the Instruction.
    I have deployed the Sample Source as AdapterJCA, change the JNDI name in the SampleRa.xml and upload to CPA Cache. 
    I have by now the Configuration deleted in PCK and rebuild the scenario. The demo Configuration runs now. I think the Configuration in the CPA Cache was wrong.
    Stefan

  • File Sender adapter with File content conversion

    Hi
    I'm having problems picking up a flat file that has some junk characters in the file.
    I'm usign a file sender adapter with file content conversion. The adapters shows the following error-
    Conversion of complete file content of  to XML format failed around position 0: sun.io.MalformedInputException
    this is the sample data with junk char's -
    A20099201009999009999060815160505051700130008151vÿÿÿÿ³  r 0OK0476                     31N016227241915840IV  00840 ÿÿÿ ÿ ÿÿÿÿÿÿÿÿ ÿ ÿÿÿ             
    There is not much in the file content conversion. This is a fixed length file, I'm just pickign it up & passing it to an inbound proxy. All my processing is in the proxy.
    I'd appreciate any suggestions.
    Thanks
    Rachana

    Hi Rachana,
    Do you use a specific "encoding" like UTF-8 or ISO-8859-1 in your Sender CC?
    To be simple, Encoding is linked to country, you can find all "iso-nnnn" via google or some of them in sap help.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    Moreover, with your source file opened thanks to Notepad (for instance), use option "save UNDER", you will the encoding use by your file
    Mickael

  • Sample Adapter Migration from PI 7.0 to 7.1

    Hi All,
    i want to migrate the 7.0 Sample Adapter to 7.1. I followed the instructions written in the paper 
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0667f56-96c7-2b10-0e9a-c40fbd523f4d
    But i get the following error message in the message-monitoring, after sending a xml:
    Message could not be forwarded to the JCA adapter. Reason: class com.sap.aii.af.sample.adapter.ra.XIMessageRecordImpl:sap.com/com.sap.aii.af.sample.adapter.ra @ com.sap.engine.boot.loader.ResourceMultiParentClassLoader @ 5ab9f6b4 @ alive incompatible with interface com.sap.engine.interfaces.messaging.api.Message:interface:com.sap.aii.af.ms.ifc @ com.sap.engine.boot.loader.ResourceMultiParentClassLoader @ 7d9ab9c5 @ alive
    Thanks in advance
    Regards Christoph

    This paper is intended to show, how the sample adapter 7.1 can be used to migrate a customer adapter 7.0 to 7.1
    It is not useful to help the migration of the sample adapter itself. For migration you have to compare sample adapter 7.0 and 7.1 to see the changes.
    Regards
    Stefan

  • Config Sample Adapter as SENDER & RECEIVER

    Hi there!
    I have a problem when I try to use the sample adapter as sender and receiver. If I use it only as receiver and the sender is the fileAdapter it works fine...
    The sample adapter is deployed,
    it's metaData is imported. But it is only able to receive, not to send messages.
    In the LogViewer I can see that the adapter is started:
    MCF with GUID 1791c2d060fa11daccb30011431a5d8e is running. Location: om.sap.aii.af.sample.adapter.ra.SPIManagedConnectionFactory.XIManagedConnectionFactoryController.run(
    But the input file is not read and no other method except this run() is called.
    Is anybody out there who can help me with this???
    Thanks in advance and best regards,
    Christian

    Hi,
    U check these blogs which may be helpful to u..
    <b>/people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
    <b>/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Regards,
    Sridhar reddy k.

  • Problem while modifying sample adapter

    Hi
    I am trying to modify the sample adapter but am stuck with a problem. I am trying to create a connection to my data base (datasource.getconnection()) in place where the sample adapter creates fileoutputstream. But i get this error ;
    Catching com.sap.engine.services.dbpool.exceptions.BaseSQLException:
    ResourceException in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.connector.exceptions.BaseResource
    Cannot open resource(Managed Connection) with LocalTransaction support or add a second one in the same transaction, for component "ejbContexts/sap.com/com.sap.aii.af.app/ModuleProcessorExitBean"
    --Please help

    Hi
    I am trying to modify the sample adapter but am stuck with a problem. I am trying to create a connection to my data base (datasource.getconnection()) in place where the sample adapter creates fileoutputstream. But i get this error ;
    Catching com.sap.engine.services.dbpool.exceptions.BaseSQLException:
    ResourceException in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.connector.exceptions.BaseResource
    Cannot open resource(Managed Connection) with LocalTransaction support or add a second one in the same transaction, for component "ejbContexts/sap.com/com.sap.aii.af.app/ModuleProcessorExitBean"
    --Please help

  • PI7.1 Sample Adapter

    I created a simple scenario utilizing sample adapter (JCA) to see how it works. It's PI7.1. The sender side works fine but i got this error message in the receiver side:
    Adapter Framework caught exception: Cannot lookup the ra connectionFactory. Reason: Path to object does not exist at sample_ra, the whole lookup name is deployedAdapters/sample_ra/shareable/sample_ra.
    Delivering the message to the application using connection JCA_http://sap.com/xi/XI/sample failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.Exception: Cannot lookup the ra connectionFactory. Reason: Path to object does not exist at sample_ra, the whole lookup name is deployedAdapters/sample_ra/shareable/sample_ra..
    Can anyone please help me to solve this?
    Thanks!

    Check with NW Administrator how the EJB modules are named in JNDI.
    Put the same name to the module parameter.
    Regards
    Stefan

  • Example consuming a web server with NWDS

    Hi all,
    I created standalone proxy client from a sap wsdl with NWDS.
    Now I try to implement a consumer with NDWS, but i don't understood how I have to use the SEIs classes.
    The system returns some runtimes error
    Warning ! Protocol Implementation [com.sap.engine.services.webservices.jaxrpc.wsdl2java.features.builtin.MessageIdProtocol] could not be loaded (NoClassDefFoundError) !
    Error Message is :com/sap/guid/GUIDGeneratorFactory
    but i think it depends on how i use the classes.
    Can anyone give some simple example on how to build a consumer of a proxy created by NDWS?
    thanks
    enzo

    Hi Enzo,
    I also get the warning message you mentioned, but it still works..so it doesn't seem to be a fatal problem.
    Using the SEI classes is quite simple. If you have the following WSDL:
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="urn:sample.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="CalculatorService" targetNamespace="urn:sample.com">
         <types>
              <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:sample.com">
                   <complexType name="calculate">
                        <sequence>
                             <element name="int_1" type="int"/>
                             <element name="double_2" type="double"/>
                        </sequence>
                   </complexType>
                   <complexType name="calculateResponse">
                        <sequence>
                             <element name="result" type="string" nillable="true"/>
                        </sequence>
                   </complexType>
                   <element name="calculate" type="tns:calculate"/>
                   <element name="calculateResponse" type="tns:calculateResponse"/>
              </schema>
         </types>
         <message name="ICalculator_calculate">
              <part name="parameters" element="tns:calculate"/>
         </message>
         <message name="ICalculator_calculateResponse">
              <part name="result" element="tns:calculateResponse"/>
         </message>
         <portType name="ICalculator">
              <operation name="calculate">
                   <input message="tns:ICalculator_calculate"/>
                   <output message="tns:ICalculator_calculateResponse"/>
              </operation>
         </portType>
         <binding name="ICalculatorBinding" type="tns:ICalculator">
              <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
              <operation name="calculate">
                   <soap:operation soapAction=""/>
                   <input>
                        <soap:body use="literal"/>
                   </input>
                   <output>
                        <soap:body use="literal"/>
                   </output>
              </operation>
         </binding>
         <service name="CalculatorService">
              <port name="ICalculatorPort" binding="tns:ICalculatorBinding">
                   <soap:address location="http://localhost:8080/wstest/calculator"/>
              </port>
         </service>
    </definitions>
    ...and you generate a client proxy for it with NWDS, then you can use the generated SEI classes like this:
    CalculatorService service = new CalculatorServiceImpl();
                   ICalculator calculator = service.getLogicalPort();
                   String result = calculator.calculate(Integer.parseInt(args[0]), Double.parseDouble(args[1]));
                   System.out.println("Result=" + result);
    Regards,
    Matthias

  • Deploy PAR with NWDS SP19

    Hi All,
      I am trying to deploy the PAR file from NWDS, it brings up the dialog and after i enter my password, the deployment progress is stuck, let us say at 80% and my NWDS is hung. I have to terminate it and reopen it again. I upgraded my NWDS recently from SP15 TO SP19. also my portal is on SP19. is this a bug with NWDS Patch.
    Also, Just now I found that I am not able to deploy PAR files from the System Administration > Support> Portal Runtime --> Administration Console on Ep 6.0 SP19.
    Did any of you guys encounter the same problems?
    Any Help is appreciated.
    Thanks
    Message was edited by:
            Reddy

    Hi Reddy,
    It sounds like some of the pluggins may be corrupted, have you tried reinstalling the NWDS?
    Krishna Reddy

  • How can I transfer photos from an IPhone 5 to an IPad 2 using a cable.  I have tried using the lightning to firewire adapter with my current lead but this only seems to allow a download from the Ipad to the Iphone and not the other way around.

    How can I transfer photos from an IPhone 5 to an IPad 2 using a cable.  I have tried using the lightning to firewire adapter with my current lead but this only seems to allow a download from the IPad to the IPhone and not the other way around.

    The devices are not designed for transfer of that kind.  Use Photo Stream as suggested by another poster, or transfer photos to your computer (a good idea anyway since they will be lost if your device needs to be reset), then use iTunes to sync them to the other devices.

  • Apple DVI to ADC Adapter with new mini

    Has anyone have any experience using the Apple $99 DVI to ADC Adapter
    with a New ( or old ) Mac Mini... I have a 22 inch Apple Cinema and
    I love it... especially the non-glare screen.
    The only complaints I've heard were the ADC Adapter size was large and it gets hot.
    Anything else???? Does the sleep feature work?
    Thanks in advance, Tom

    Tom,
    I currently use Apple's $99.00 DVI to ADC adapter with pre 2009 Mac Mini and Apple 17" ADC Studio monitor.
    This setup in use for approx. 2 years now and to date no problems observed.
    The unit's dimensions are approx. 4" x 4" x 1.5".
    In use from 9:00 am this morning, in use as I type, I place my hand on unit now. The unit is warm to the touch. I can leave my hand on unit for 15-20-30 minutes. Certainly not HOT.
    I have had sleep/wake problems with both mini and monitor in the past. I cant say that these issues are related to or caused by the dvi/adc adapter. I have no current sleep/wake problems.
    UPS/System preference settings can also affect sleep/wake options.
    Sleep feature works as the unit is also connected via usb to the machine.
    Regards,
    TrevorB

  • Can I put a Moshi Mini DisplayPort to HDMI Adapter (with audio) in a thunderbolt port in the new macBook Pro

    can I put a Moshi Mini DisplayPort to HDMI Adapter (with audio) in a thunderbolt port in the new macBook Pro, will it work?

    Should work perfectly.

  • Mini DisplayPort to HDMI adapter with sound

    There are 2 Mini DisplayPort to HDMI adapters that combine sound into the HDMI signal, http://www.monoprice.com/products/product.asp?cid=104&cp_id=10428&cs_id=1042802&pid=5969&seq=1&format=2 (one that uses USB for the audio) and http://www.monoprice.com/products/product.asp?cid=104&cp_id=10428&cs_id=1042802&pid=6331&seq=1&format=2 (one that uses the mini TOSLink for the sound). The USB sound one is cheaper, but does it output a true 5.1 signal? I know the more expensive TOSLink one will, but if possible I'd like to get the cheaper adapter. If it outputs a 5.1 signal, I can get the USB sound adapter, otherwise I'll get the pricier TOSLink one. Thanks, Zach

    Only the adapter with Toslink can supports the 5.1 Channel audio. You can get the product through the Link: http://www.cablematters.com/pc-56-26-mini-displayport-male-and-toslink-audiousb- male-to-hdmi-female-adapter.aspx
    There is more helpful information on its site and has Youtube video. http://www.youtube.com/watch?v=oc1zI7LMlls

Maybe you are looking for