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):
- webservice.fmb/fmx [forms]- The demo form
- CurrencyConverter.java [src/oracle/forms/demos/webservice] - source code
for the Webservice class
- 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
- Tester.java [src/oracle/forms/demos/webservice] - source code for the Webservice
testing class
- CurrencyConverter.wsdl [src/oracle/forms/demos/webservice] - WebService
description document which can be used to generate the CurrencyConverterStub
from within Oracle JDeveloper
- 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.
- 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