Skip to Content
Java Web Services: Up and Running
book

Java Web Services: Up and Running

by Martin Kalin
February 2009
Intermediate to advanced
316 pages
9h 28m
English
O'Reilly Media, Inc.
Content preview from Java Web Services: Up and Running

Chapter 3. SOAP Handling

SOAP: Hidden or Not?

Until now we have looked at SOAP messages only to see how SOAP-based web services operate under the hood. After all, the point of JWS is to develop and consume web services, ignoring infrastructure whenever possible. It is one thing to track web service messages at the wire level in order to see what is really going on. It is quite another to process SOAP messages in support of application logic.

At times, however, a web service or a client might need to process a SOAP envelope. For example, a client might need to add security credentials to the header of a SOAP message before sending the message; and the web service that receives the message then might need to validate these security credentials after extracting them from the header of the incoming SOAP message. How to add, extract, and otherwise process information in a SOAP message is the main topic in this chapter. The goal is to illustrate techniques for dealing directly with SOAP messages in SOAP-based web services. This chapter also examines SOAP attachments, particularly for large binary payloads.

SOAP 1.1 and SOAP 1.2

SOAP now comes in two versions, 1.1 and 1.2. There is debate within the W3C about whether a version 1.3 is needed. The good news is that the differences between SOAP 1.1 and SOAP 1.2 have minor impact on programming web services in general and programming JAX-WS in particular. There are exceptions. For example, the structure of the SOAP header differs between the versions, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Java Web Services in a Nutshell

Java Web Services in a Nutshell

Kim Topley
SOA with Java: Realizing Service-Orientation with Java Technologies

SOA with Java: Realizing Service-Orientation with Java Technologies

Thomas Erl, Andre Tost, Satadru Roy, Philip Thomas, Raj Balasubramanian, David Chou, Thomas Plunkett

Publisher Resources

ISBN: 9780596157708Errata Page