Show TOC

Example: Using a Simple Web Services (SOAP) Output AdapterLocate this document in the navigation structure

Set up a basic Web Services (SOAP) Output adapter. This Web service has no security and communicates over HTTP or HTTPS.

Prerequisites

The cluster database stores configuration information. Ensure that the cluster is running, so that the adapter can interact with the projects on the cluster.

Procedure

  1. Install Apache Tomcat.
  2. Add Apache Axis2™ to Tomcat. Copy axis2.war to tomcat/webapps, and start Tomcat.
    Axis2 is automatically unzipped.
  3. Ensure that the JDK_HOME environment variable is properly set. If it is not, you can set it using set_example_env.bat or set_example_env.sh.
  4. Remove any StockTraderService_messageUT.aar or StockTraderService_transportUT.aar files from the adapter examples/service directory if you previously ran those examples.
  5. Copy the examples/service/StockTraderService_noSec.aar file to the tomcat/webapps/axis2/WEB-INF/services directory under your Web server.
  6. Modify the adapter_config.xml file by setting <User> and <Password> to the desired user name and password combination:
    <EspProjects>
          <EspProject>    
            <Name>StockTraderProject</Name>
            <Uri>esp[s]://localhost:19011/w1/p1</Uri>
            <Security>
    			<User>user</User>
    			<Password>password</Password>
    			<AuthType>user_password</AuthType>
    
    
  7. Modify set_example_env.bat or set_example_env.sh to set ADAPTER_EXAMPLE_USERNAME and ADAPTER_EXAMPLE_PASSWORD to the desired user name and password combination, and set ADAPTER_EXAMPLE_CLUSTER_NODE_PROTOCOL to esps if SSL is enabled or esp if SSL is disabled.
  8. Start the Web server.
  9. Start the node by running the start_node.bat or start_node.sh script.
  10. Start the project by running the start_project.bat or start_project.sh script.
  11. Start the adapter by running the start_adapter.sh or start_adapter.sh script.
  12. Upload data to SAP Event Stream Processor by using the streamingupload.bat or streamingupload.sh script.
    Look for output in the Web server's output log file to verify whether the adapter is working.