dev@jax-ws.java.net

Namespace qualification for attributes on SOAP header

From: Arun Gupta <Arun.Gupta_at_Sun.COM>
Date: Tue, 21 Feb 2006 08:55:19 -0800

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>

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

-- 
got Web Services ?
Download Java Web Services Developer Pack from
http://java.sun.com/webservices