Calling Webservice Information

The WebServices demo uses code generated by the Java Importer facility in form to call out through Java and SOAP (Simple Object Access Protocol) to a WebService which provides exchange rates.

Note: The WebService that is supplied as part of this demo is not supplying live accurate exchange rate information. It simply has a list of hard coded exchange rates which do not change. This WebService is designed as a demonstration only .

Modules In This Demo

The WebServices demo consists of the following files (relative directories shown in brackets):

  1. webservice.fmb/fmx [forms]- The demo form
  2. CurrencyConverter.java [src/oracle/forms/demos/webservice] - source code for the Webservice class
  3. CurrencyConverterStub.java [src/oracle/forms/demos/webservice] - source code for the Webservice clients side stub which is the class that class which Forms actually calls and which proxies the request to the WebService
  4. Tester.java [src/oracle/forms/demos/webservice] - source code for the Webservice testing class
  5. CurrencyConverter.wsdl [src/oracle/forms/demos/webservice] - WebService description document which can be used to generate the CurrencyConverterStub from within Oracle JDeveloper
  6. demowebservice.ear [classes] - the compiled WebService packaged up as an Enterprise Archive file - This will have been deployed to OC4J as part of the Demo install.
  7. demowebserviceclientside.jar[classes] - The compiled Client side stub actually called by Forms. This Jar file also contains the SOAP classes required to call the WebService