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

Figure 11-5. OC4J Web Service endpoint
figs/oas_1105.gif

   


Oracle Application Server 10g Essentials
Oracle Application Server 10g Essentials
ISBN: 0596006217
EAN: 2147483647
Year: 2004
Pages: 120

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net