Web Services Interoperability
WS-I Sample Application 1.0 Package

Contents

Overview

This distribution contains Oracle's implementation of the Web Services Interoperability Sample Application 1.0 (see http://www.ws-i.org/).

The following are the pre-requisites for installing and running the Sample Application.

Installation of the Sample Application

  1. Download and expand sample application from webservices_demos.zip to a directory which we will refer to as SA_HOME
  2. Start the OC4J instance: java -jar ORACLE_HOME/j2ee/home/oc4j.jar
  3. Deploy the Sample Application by issuing the following two commands: Note: See build/readme.txt for instructions how to build the WsiSupplyChain.ear yourself.
  4. Verify your install as follows.

Running the Sample Application

  1. Click the 'Configuration' link on the left panel.
  2. Choose the endpoints you would like to try from the right panel.
  3. Click the 'Start a New Demo' button.
  4. Fill in some quantities for the items you want to buy and click the 'Submit Order' button. You should see what items have been shipped.
  5. Click on the 'Track Order' link on the left panel. You should see a list of logging entries.

Sample Results from Running the Sample Application

  1. Click the 'Configuration' link on the left panel.
  2. Choose the endpoints that start with 'Oracle'.
  3. Click the 'Start a New Demo' button.
  4. Fill in the following values.
    1. 8 for product 605003
    2. 61 for product 605004
    3. 40 for product 605008
    Click the 'Submit Order' button. You should see the following order confirmation:
    Quantity 	Product ID  	Price 		Comment
             8 		605003 		$45,807.84 	in stock from WarehouseA
        	61 		605004 		$12,196.95 	in stock from WarehouseB
    		40 		605008 		$8,000.00 	in stock from WarehouseC
    
  5. Click on the 'Track Order' link on the left panel and you should see 20 logging entries.

Notes

  1. There is a file named DemoSetup.properties under WEB-INF/classes/com/oracle/wsi/ supplychain/common, the same directory where DemoSetup.class resides. This is the config file used by the Sample App.

    The following is an explanation of the configuration switches:

  2. The following setup is required in <j2ee_home>/home/config/data-source.xml if the database will be used by the LoggingFacility service, i.e. LOGGER_MODE=db.
     <data-source
    		class="com.evermind.sql.DriverManagerDataSource"
    		name="WS-I_DS"
    		location="jdbc/WS-I_CoreDS"
    		xa-location="jdbc/xa/WS-I_XADS"
    		ejb-location="jdbc/WS-I_DS"
    		connection-driver="oracle.jdbc.driver.OracleDriver"
    		username="wsilogger"
    		password="password"
    		url="jdbc:oracle:thin:@localhost:1521:xwen"
    		inactivity-timeout="30"
    
    	/>
    
    Notes:
  3. To test the service endpoints which are not listed in step 2, you can use &mode=expert in step 2.
    For example: http://localhost:8888/ws-i/supplychain/ApplicationStep.jsp?step=2&mode=expert
  4. By default, the list of endpoints is cached. If you want to do a refresh, use &reload=true in step 2. For example: http://localhost:8888/ws-i/supplychain/ApplicationStep.jsp?step=2&reload=true.
  5. If you are running the Sample App in a cluster environment, you must use the database for logging.
  6. If you are getting connection related errors, it may be due the fact that you are behind a firewall. Try starting OC4J with the http proxy setting or modify the appropriate script. For example: java -Dhttp.proxyHost=proxy.host.world.com -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts="localhost|127.0.0.1" -jar oc4j.jar