Service Requester

Oracle Application Server makes creating a Web Services requester, or client program, extremely easy. As mentioned earlier, OC4J Web Services provide a Web Services home page for each deployed Web Service as shown in Figure 11-5. On this home page are links to a WSDL file, and Web Services proxy files generated by the Web Services Assembler program. The Web Services Assembler tool can even generate a Web Service proxy for Web Services not published on Oracle Application Server. In addition to supporting service calls, a proxy generated by the Web Services Assembler also supports SOAP headers.

Oracle Application Server defines two types of clients that can execute a Web Service: a static client and a dynamic client. These clients are described in the next sections.

Static Client

A static client , in Oracle’s terminology, is one that is created with all the information necessary to execute a Web Service. To access an OC4J Web Service as a static client, all you need is to create a Java program that makes a copy of the proxy object for the service and then use the proxy to call a method by the same name and with the same parameters as the service.

Dynamic Client

A dynamic client is one that looks up an available Web Service and executes it at runtime. In this case, the client doesn’t know the location of the Web Service or may not even know the name of the Web Service until the time that it looks up available Web Services in a UDDI directory. Once it locates a service ...

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.