dev@jax-ws.java.net

Re: Namespace qualification for attributes on SOAP header

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 22 Feb 2006 10:33:47 +0100

Kohsuke Kawaguchi wrote:
> 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
>

Correct, default namespaces do not apply directly to attributes [1].

Paul.

[1] http://www.w3.org/TR/REC-xml-names/#defaulting

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