Overview of Web Services Invocation

6-2 Getting Started With JAX-WS Web Services for Oracle WebLogic Server

6.1 Overview of Web Services Invocation

Invoking a Web service refers to the actions that a client application performs to use the Web service. There are two types of client applications: ■ Java SE client—In its simplest form, a Java SE client is a Java program that has the Main public class that you invoke with the java command. ■ Java EE component deployed to WebLogic Server—In this type of client application, the Web service runs inside a Java Platform, Enterprise Edition Java EE Version 5 component deployed to WebLogic Server, such as an EJB, servlet, or another Web service. This type of client application, therefore, runs inside a WebLogic Server container. You can invoke a Web service from any Java SE or Java EE application running on WebLogic Server with access to the WebLogic Server classpath. Support for stand-alone Java applications that are running in an environment where WebLogic Server libraries are not available is not available in this release of JAX-WS. The sections that follow describe how to use Oracles implementation of the JAX-WS specification to invoke a Web service from a Java client application. You can use this implementation to invoke Web services running on any application server, both WebLogic and non-WebLogic. This chapter focuses on how to generate a static Java class of the Service interface implementation for the particular Web service you want to invoke. For information about generating dynamic proxy clients, see Creating Dynamic Proxy Clients in Programming Advanced Features of JAX-WS Web Services for Oracle WebLogic Server. WebLogic Server includes examples of creating and invoking WebLogic Web services in the WL_HOMEsamplesserverexamplessrcexampleswebservices directory, where WL_HOME refers to the main WebLogic Server directory. For detailed instructions on how to build and run the examples, open the WL_ HOME samplesserverdocsindex.html Web page in your browser and expand the WebLogic Server Examples-Examples-API-Web Services node. In addition to the command-line tools described in this section, you can use an IDE such as Oracle JDeveloper or Oracle Enterprise Pack for Eclipse OEPE for Web service proxy generation and testing. For more information, see Using Oracle IDEs to Build Web Services in Introducing WebLogic Web Services for Oracle WebLogic Server.

6.2 Invoking a Web Service from a Java SE Client