Configuring service invocation
You can configure service invocation.
About this task
To configure service invocation:
Procedure
- Rename the INSTALL_DIR/resources/yifclient.properties.in file to INSTALL_DIR/resources/yifclient.properties.
- Ensure that the CLASSPATH contains the following:
- log4j-1.2.15.jar
- xercesImpl.jar
- install_foundation.jar
- platform_afc.jar
- resources.jar
- entities.jar
- xapi.jar
- JARs required by your application server
- JARs required by user exits and custom APIs
- Set your java command line property to:
-Dlog4j.configuration=resources/log4jconfig.xml - Make sure that the INSTALL_DIR directory is in your CLASSPATH.
- Set the log4j1 properties in the log4jconfig.xml file to the appropriate values for your
environment. If these properties are not specified correctly, the Service Definition Framework does
not initialize correctly.
- If you are using the EJB protocol and Oracle WebLogic, make sure that
weblogic.jaris in your CLASSPATH environment variable. In addition,xercesImpl.jarandxalan.jarmust precedeweblogic.jarin your CLASSPATH. - If you are using the EJB protocol and IBM®
WebSphere®, make sure that the CLASSPATH environment
variable contains the necessary JAR files. For information about the WebSphere JAR files, see IBM Documentation. Make sure that the
CLASSPATH environment variable contains the appropriate properties directory.Note: If you are invoking the service or API from the machine on which the server is running, make sure that the CLASSPATH environment variable contains the WAS_HOME/AppServer/properties/ directory.
If you are invoking the service or API from a different machine, make sure that the CLASSPATH environment variable contains the WAS_HOME/AppClient/properties/ directory.
- If you are configuring a COM+ protocol call, use one of the following COM signatures that you
need:
Signature for calling standard APIs:createEnvironment(VARIANT *lEnvHandle, BSTR sProgID, BSTR sUserID, int *iRetval)
Signature for calling services:<SterlingAPI>(VARIANT *lEnvHandle, BSTR inXML, VARIANT *outXML, VARIANT *errXML, int *retval)
For examples of VB code, see the samples in the INSTALL_DIR/xapidocs/code_examples/complus directory.executeFlow(VARIANT *lEnvHandle, BSTR flowName, BSTR flowMsg, VARIANT *outXML, VARIANT *errXML, int *retval)
- If you are using the EJB protocol and Oracle WebLogic, make sure that