com.ibm.di.fc.sapr3rfc
Class RfcXmlInvoker

java.lang.Object
  extended by com.ibm.di.fc.sapr3rfc.RfcXmlInvoker

public final class RfcXmlInvoker
extends Object

Command line test harness for IDI SAP FC.

Uses the internal Sap Adapter form the RFC Function Component to invoke an RFC based on a used supplied input XML file. The SAP JCo libraies must be in the classpath and java.library.path.
NB: On UNIX, the JCo shared libraries, librfc.so and libsapjcorfc.so must be added to the LD_LIBRARY_PATH environment variable.

(ITDI_HOME)/_jvm/bin/java -cp (SAP_JCO_HOME)/sapjaco.jar:(ITDI_HOME)/jars/functions/SapR3RfcFC.jar -Djava.library.path=(SAP_JCO_HOME) com.ibm.di.fc.sapr3rfc.RfcXmlInvoker -f [input XML file] -o [output XML file] -p [JCO Connection properties file]

The contents of the JCO Properties file represent the R/3 client connection parameters for the R/3 system.
An example of the values in the property file is shown below:
jco.client.client=(R/3 CLIENT)
jco.client.user=(R/3 USER NAME)
jco.client.passwd=(R/3 USER PASSWORD)
jco.client.sysnr=(R/3 SYSTEM NUMBER)
jco.client.ashost=(R/3 APPLICATION SERVER HOSTNAME OR IP ADDRESS
jco.client.trace=(RFC API TRACE: 1 == ON; 0 == OFF)


Constructor Summary
RfcXmlInvoker(String[] args)
          Create the RfcInvoker.
 
Method Summary
static void main(String[] args)
          Command line test harness for IDI SAP FC.
 void run()
          Run the invoker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RfcXmlInvoker

public RfcXmlInvoker(String[] args)
              throws IOException
Create the RfcInvoker.

Parameters:
args - The commandline argument from main.
Throws:
IOException - If the property file could not be read.
Method Detail

run

public void run()
Run the invoker.


main

public static void main(String[] args)
Command line test harness for IDI SAP FC.

Uses the internal Sap Adapter form the RFC Function Component to invoke an RFC based on a used supplied input XML file. The SAP JCo libraies must be in the classpath and java.library.path. NB: On UNIX, the JCo shared libraries, librfc.so and libsapjcorfc.so must be added to the LD_LIBRARY_PATH environment variable.

(ITDI_HOME)/_jvm/bin/java -cp (SAP_JCO_HOME)/sapjaco.jar:(ITDI_HOME)/jars/functions/SapR3RfcFC.jar -Djava.library.path=(SAP_JCO_HOME) com.ibm.di.fc.sapr3rfc.RfcXmlInvoker -f [input XML file] -o [output XML file] -p [JCO Connection properties file]

The contents of the JCO Properties file represent the R/3 client connection parameters for the R/3 system.
An example of the values in the property file is shown below:
jco.client.client=(R/3 CLIENT)
jco.client.user=(R/3 USER NAME)
jco.client.passwd=(R/3 USER PASSWORD)
jco.client.sysnr=(R/3 SYSTEM NUMBER)
jco.client.ashost=(R/3 APPLICATION SERVER HOSTNAME OR IP ADDRESS
jco.client.trace=(RFC API TRACE: 1 == ON; 0 == OFF)

Parameters:
args - -f [input XML file] -o [output XML file] -p [JCO Connection properties file]