...
- Download and install WSO2 ESB by following the instruction in Getting Started.
Download the
sapidoc3.jar
andsapjco3.jar
middleware libraries from the SAP support portal https://websmp109.sap-ag.de/connectors and portal and copy those libraries to the<ESB_HOME>/repository/components/lib
directory.Info title Note You need to have SAP login credentials to access the SAP support portal.
Download the native SAP JCo library and copy it to the system path. You need to select the system path applicable to your operating system as described 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
.Copy the following SAP endpoint property files to the
<ESB_HOME>/repository/conf/sap
directory. You need to have two property files, one at the server-end and the other at the client-end to communicate with an external SAP endpoint using IDoc or BAPI.Info This directory does not exist by default. A SAP system administrator has to create the directory and provide access rights so that you can read the property files saved in the directory. *.dest
: This is where we keep SAP endpoint parameters when WSO2 ESB should act as a client to an external SAP endpoint.*.server
: This is where we keep SAP endpoint parameters when WSO2 ESB should act as a server to an external SAP endpoint.
- Start the ESB using the
-Djava.library.path
switch to specify the location of your SAP jco library.
For example./wso2server.sh -Djava.library.path=/usr/lib/jvm/jre1.7.0/lib/i386/server/
...