Yes, both SOAP11 and SOAP12 requires the headers to be namespace qualified.

http://www.w3.org/TR/soap12-part1/#soaphead

Thanks,
Ruwan

On Thu, Nov 19, 2009 at 5:44 PM, Amila Suriarachchi <
[email protected]> wrote:

> hi,
>
> I tried to invoke the TwoHeadersSameNameDiffNS operation of this
> service[1].
>
> And got this exception.
>
> org.apache.axiom.om.OMException: All the SOAP Header blocks should be
> namespace qualified
>    at
>
> org.apache.axiom.soap.impl.llom.soap11.SOAP11HeaderImpl.addHeaderBlock(SOAP11HeaderImpl.java:65)
>    at org.apache.axis2.client.Stub.addHeader(Stub.java:207)
>    at org.apache.axis2.client.Stub.addHeader(Stub.java:229)
>    at
>
> org.wso2.carbon.interop.microsoft.schema.headers.HeadersDataTypesDocLitWServiceStub.twoHeadersSameNameDiffNS(HeadersDataTypesDocLitWServiceStub.java:2638)
>
> the reason for this exception is the following code at the
>
> org.apache.axiom.soap.impl.llom.soap11.SOAP11HeaderImpl.addHeaderBlock(SOAP11HeaderImpl.java:65)
>
>  if (ns == null || ns.getNamespaceURI() == null ||
> "".equals(ns.getNamespaceURI())) {
>            throw new OMException(
>                    "All the SOAP Header blocks should be namespace
> qualified");
>        }
>
> is there such a requirement in SOAP spec?
>
> thanks,
> Amila.
>
> [1]
>
> http://131.107.72.15/SoapWsdl_HeadersDataTypes_XmlFormatter_Service_Indigo/HeadersDataTypesDocLitW.svc?wsdl
>
> --
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/
>



-- 
Ruwan Linton
Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: [email protected]; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com

Reply via email to