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:

- convert Java method invocations on the proxy to appropriate XML messages

- manage sending the XML messages to the web service over an appropriate protocol

- receive response messages

- convert received XML response messages into Java types

# Concepts Demonstrated by this Sample

- 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.

# Location of Sample Files

These samples are located in the proxy folder of the samples WebLogic Workshop project. In the file system the location is:

BEA_HOME\weblogic700\samples\workshop\applications\samples\proxy

# How to Run the Sample

Step by step instructions for building and running the samples may be found in the readme.html file in the proxy sample directory (above). If you are viewing this documentation on a machine running WebLogic Server in the WebLogic Workshop samples domain, you may click here to view the readme.html file.

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?