Java Reference
In-Depth Information
An SOAP message example from ActionBazaar is shown in the following listing. This
message doesn't contain a header. The HTTP information is included—as you can see, the
SOAP message will be delivered to the service residing at /BidService/MakeBid .
Listing 8.1. ActionBazaar bid SOAP message
Web service styles
There are two primary types of web service styles: RPC-oriented and document-oriented.
Although RPC-oriented implies remote procedure call, it has nothing to do with the pro-
gramming model. Instead, it has to with how the XML is structured. The RPC style of web
services was popular initially, but more recently the pendulum has swung in the direction
of document-oriented web services.
Document-oriented web services essentially mean that you're “exchanging” documents.
You should use this if you're exchanging industry-standard XML documents or even
custom-developed XML documents. With the document style, you can structure the mes-
sage however you want. RPC, on the other hand, corresponds to a method invocation, so
the XML will be structured with a method name and set of parameters. To see the differen-
ces, play with the SOAPBinding annotation described later in this chapter and examine
the WSDL that's generated automatically by JAX-WS.
Search WWH ::




Custom Search