Service Description

In addition to configuring your Web Service, you can also edit the Web Services Assembler configuration file to specify whether a WSDL file is automatically generated as part of the packing process or if the Web Services Assembler is to include a WDSL file you already created during the creation of the EAR file. You can also direct it to create Web Service proxy JAR files.

A Web Service proxy is a class generated by the Web Services Assembler that is a complete client-side SOAP implementation for the specified Web Service. With the proxy, you can create a working client by simply instantiating a copy of the proxy and then calling a proxy method with the same name and the same parameters as the target service.

Both the generated WSDL and the proxy JAR files are available at a Web Service’s endpoint. Figure 11-5 is an example of a Web Service’s endpoint for the service method in Example 11-1. The WSDL file is available at the Service Description link. You can test an RPC-style Web Service by following its service method link. In this case, the link is sayHello. In addition, two proxy JAR files are made available, one containing the Java source for the proxy and the second containing the compiled class files.

OC4J Web Service endpoint

Figure 11-5. OC4J Web Service endpoint

Get Oracle Application Server 10g Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.