O'Reilly logo

Oracle Application Server 10g Essentials by Robert Stackowiak, Donald Bales, Rick Greenwald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required