Java Client Samples

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:

Concepts Demonstrated by these Samples

Location of the Maze Generator Sample Files

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.

Location of the Register Sample Files

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.

Related Topics

How Do I: Communicate with a Web Service from a JSP or Servlet?

How Do I: Communicate with a Web Service from Another Java Application?

How Do I: Tell Developers of Non-WebLogic Workshop Clients How to Participate in Conversations?

How Do I: Use the Java Proxy for a Web Service?