Java Reference
In-Depth Information
Listing 2-3. A SOAP Fault
The basic assumption is that all data types are exchanged between SOAP nodes in XML
format. In reality, not all data should be translated into XML (e.g., binary image, pro-
prietary data formats). Thus, a proposed solution is to use SOAP attachments similar to
the email protocol. There are problems with this approach, though, in that scalability can
become an issue. Furthermore, not all SOAP engine implements SOAP attachment; thus,
compatibility becomes an issue between SOAP nodes. This does not discount the overhead
of an attachment.
2.2 Mapping SOAP to HTTP
The SOAP message exchange maps nicely into HTTP protocol. In this example, an HTTP
POST is used for invocating a SOAP method on a server:
Listing 2-4. An HTTP Post
Search WWH ::




Custom Search