Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The WSO2 SAP adapter is written as a transport for WSO2 ESB. The relevant jar is is org.wso2.carbon.transports.sap-VERSION.jar (e.g. org.wso2.carbon.transports.sap-1.0.jar). Follow the steps below to install and set up.1.

  1. Download and install WSO2 ESB using instruction given in section Getting Started.

...

  1. Download the sapidoc3.jar and sapjco3.jar middleware libraries from SAP support

...

  1. at http://service.sap.com/connectors,

...

  1.  and copy them to <ESB_HOME>/repository/components/lib directory.

...

  1. Copy the native SAP jco library to the system path. Pick the system path relevant to your operating system from the list below.

    Linux 32-bit

    Copy the Linux native SAP jco library (libsapjco3.so) to <JDK_HOME>/jre/lib/i386/server.

    Linux 64-bit

    Copy the Linux native SAP jco library (libsapjco3.so) to <JDK_HOME>/jre/lib/amd64.

    Windows

    Copy the Windows native SAP jco library (sapjco3.dll) to <WINDOWS_HOME>/system32.

...

  1. Copy the SAP endpoint property files to

...

  1. the <ESB_HOME>/repository/conf/

...

  1. sap directory. When communicating with an external SAP endpoint using IDoc or BAPI, there are two property files for server-side and client-

...

  1. side as follows:

    Info

    This directory does not exist by default. Make sure that you create it and provide access rights to the WSO2 user to read the files saved in it.

     

    • *.dest - SAP endpoint properties when the ESB acts as the client to an external SAP endpoint. This file should be named <SAP-GWHOST>.dest. For example, if the name of your SAP gateway is SAPSYS01, the name of the file should be SAPSYS01.dest and its configuration can be as follows:

      Code Block
      jco.client.client=900
      jco.client.user=spremote
      jco.client.passwd=FILL_IN_YOUR_PASSWORD_HERE
      jco.client.lang=en
      jco.client.ashost=SAPSYS01
      jco.client.mshost=SAPSYS01
      jco.client.gwhost=SAPSYS01
      jco.client.gwserv=3300
      jco.client.sysnr=00
      jco.client.idle_timeout=300
      jco.client.logon=0
      jco.client.msserv=3600
      jco.client.trace=0
      jco.client.getsso2=0
      jco.client.r3name=QCR

       

    • *.server - SAP endpoint properties when the ESB acts as the server to an external SAP endpointThis file should be named <SAP-GWHOST>.server. For example, if the name of your SAP gateway is SAPSYS01, the name of the file should be SAPSYS01.server.

      The SAP client and server properties file should be available with its name according to the

...

    • property transport.sap.serverName

...

    •  for server, and the endpoint name for the destination. The next section explains this in detail. 

...

  1. Start the ESB using

...

  1. the -Djava.library.path

...

  1.  switch to specify the location of your SAP jco library. For example:

    ./wso2server.sh

...

  1. -Djava.library.path=/usr/lib/jvm/jre1.7.0/lib/i386/server/

Configuring WSO2 SAP Adapter

...