dev@jax-ws.java.net

Re: Added the SOAPAction header value to MessageProperties

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 18 Jan 2006 17:25:10 +0100

Kohsuke Kawaguchi wrote:
>
> I think this information needs to be propagated from the producer of a
> Message to the consumer, so I added it to MessageProperties. If someone
> could take a look at its javadoc to check the sanity, that would be
> greatly appreciated.
>

It is my understanding that the SOAP 1.2 HTTP binding does not use a
SOAPAction HTTP header. Instead it is defined as a parameter on the
MEDIA type [1]:

"This optional parameter can be used to specify the URI that identifies
the intent of the message. In SOAP 1.2, it serves a similar purpose as
the SOAPAction HTTP header field did in SOAP 1.1. Namely, its value
identifies the intent of the message.

The value of the action parameter is an absolute URI-reference as
defined by RFC 2396 [RFC 2396]. SOAP places no restrictions on the
specificity of the URI or that it is resolvable."


IIRC WS-I BP do requires that the SOAPAction HTTP header always be
present and be quoted even if an empty string.


So there are some different semantics depending on whether one is using
SOAP 1.1 (when WS-I compliance is enabled) and SOAP 1.2.


> One related question about this is whether an user can set SOAPAction
> header value when using Dispatch. Looking at the code, there seems to be
> no way, but does anyone know for sure?
>

I do not know.

Paul.

[1] http://www.w3.org/TR/soap12-part2/#ietf-action

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109