dev@jax-ws.java.net

Re: Namespace qualification for attributes on SOAP header

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 21 Feb 2006 10:51:05 -0800

Arun Gupta wrote:
> A quick question on schemas ...
>
> Are the following two instances of SOAP 1.2 headers equivalent ?
>
> <ck:CustomerKey xmlns:ck="http://example.org/customer"
> xmlns="http://www.w3.org/2005/08/addressing"
> IsReferenceParameter="1">Key#123456789</ck:CustomerKey/>
>
> <ck:CustomerKey xmlns:ck="http://example.org/customer"
> xmlns:wsa="http://www.w3.org/2005/08/addressing"
> wsa:IsReferenceParameter="1">Key#123456789</ck:CustomerKey>

No. In particular the former @IsReferenceParameter is really
@{}IsReferenceParameter, while the latter is
@{http://www.w3.org/2005/08/addressing}IsReferenceParameter

> The question is, does the attribute in a SOAP header MUST always be
> namespace qualified ?
>
> SOAP 1.2 [1] requires AII to be namespace qualified. Does it mean they
> always MUST be prefixed by a namespace or the namespace defaulting rules
> would apply as well ?
>
> I could not find a similar requirement in SOAP 1.1.
>
> [1] http://www.w3.org/TR/2003/REC-soap12-part1-20030624/#soaphead
>
> -Arun
>


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com