Any application can communicate with a web service if it can generate and consume XML messages and use one of the protocols supported by the target web service. WebLogic Workshop provides Java proxy classes that allow any Java program to use a particular WebLogic Workshop web service. The proxy classes allow the Java application to treat the web service as though it is a normal Java class.
The proxy classes, along with supporting classes provided by WebLogic Server, perform the following work:
Converting Java method invocations on the proxy to appropriate XML messages
Managing sending the XML messages to the web service over an appropriate protocol
Receiving response messages
Converting received XML response messages into Java types
Use of a web service's Java proxy from a JSP
Use of a web service's Java proxy from a Java console application
Use of a web service's Java proxy from a Java Swing application.
The SamplesApp application provides two Java client applications, a standalone Java console application and a Swing application, that demonstrate basic use of the proxy classes. These are located in the ProxyClient project of the SamplesApp application. Step-by-step instructions for building and running these sample clients are available in the mazegen folder of the ProxyClient project.
The SamplesApp application also provides a JSP client that uses the proxy classes to call a web service. It is located in the WebApp project, in the \jspProxyClient\mazegen folder, along with a readme file explaining how to run the JSP client. If WebLogic Server is running in the appropriate domain on this machine and you have deployed the SamplesApp sample application, you may click here to try the JSP client sample.
The web service which provides the proxy classes, MazeGenerator.jws, is located in the WebServices project, in the \proxy\mazegen folder. If WebLogic Server is running in the appropriate domain on this machine and you have deployed the SamplesApp sample application, you may click here to run the web service.
The SamplesApp application includes a standalone Java application that demonstrates how to call a conversational web service from a Java client. This sample is located in the register folder of the ProxyClient project. Step-by-step instructions for building and running this sample is available in this folder.