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/

Reply via email to