Service Provider

As mentioned earlier, Oracle provides two implementations for Web Services on Oracle Application Server: OracleAS SOAP and OC4J Web Services. Oracle’s official stand on OracleAS SOAP, an enhanced version of the Apache organization’s Java-based SOAP implementation, is that it is in maintenance mode. In other words, Oracle will continue to maintain OracleAS SOAP for the time being, but you are strongly encouraged to use OC4J Web Services instead. For that reason, we cover only OC4J Web Services and its tools in the remainder of this chapter.

OC4J Web Services Agents

Web Services are implemented in OC4J by seven servlets for the following seven types of service objects:

A stateless Java class

Using an RPC-style XML message

A stateless Java class

Using a document-style XML message

A stateful Java class

Using an RPC-style XML message

A stateful Java class

Using a document-style XML message

A stateless session EJB

Using an RPC-style XML message

A stateless PL/SQL stored procedure

Using an RPC-style message

Java Message Service (JMS)

Using a document-style XML message

As demonstrated in Figure 11-4, an OC4J Web Services servlet is responsible for parsing an incoming request in the form of an XML message, calling the appropriate service, encoding the result into an XML document, and then sending the XML document back to the requester through the Oracle HTTP Server.

OC4J Web Service architecture

Figure 11-4. OC4J ...

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.