This example demonstrates use of JSP to develop a Web Service client for a web
service provided by a third party provider.
This demo uses web services provided by XMethods.
The JSP page invokes a JavaBean which uses Oracle's Dynamic Invocation API for Web services .
Note : If you network uses a firewall or requires HTTP proxy server to
access internet then you may need to set HTTP proxy host and port information
to access the webservices from internet.
You can set this information by passing following options while starting OC4J server .
-Dhttp.proxyHost
Allows the proxy host name to be specified when an HTTP URL is used to supply
the location of the WSDL document and an HTTP proxy server is required to access it.
-Dhttp.proxyPort
Allows the proxy port number to be specified when an HTTP URL is used to supply
the location of the WSDL document and an HTTP proxy server is required to access it.
For example the command to start OC4J will look like .
java -Dhttp.ProxyHost=myProxyHost -Dhttp.proxyPort=80 -jar oc4j.jar
This demo requires you to have dsv2.jar and soap.jar
libraries in the webserver's classpath. Add them to the configuration
file, application.xml, file before starting OC4J.
|