Use axis2 and override the method addHeader in your stub class as below
protected void addHeader(OMElement omElementToadd, SOAPEnvelope
envelop, boolean mustUnderstand)
{
SOAPHeaderBlock soapHeaderBlock =
envelop.getHeader().addHeaderBlock(omElementToadd.getLocalName(),
omElementToadd.getNamespace());
// Temporary Fix.
if(mustUnderstand) {
soapHeaderBlock.setMustUnderstand(mustUnderstand);
}
OMNode omNode = null;
for(Iterator iter = omElementToadd.getChildren(); iter.hasNext();
soapHeaderBlock.addChild(omNode))
omNode = (OMNode)iter.next();
OMAttribute omatribute = null;
for(Iterator iter = omElementToadd.getAllAttributes();
iter.hasNext(); soapHeaderBlock.addAttribute(omatribute))
omatribute = (OMAttribute)iter.next();
}
westpine wrote:
>
> Hi! I have a little bit similar problem. But I need mustUnderstand
> attribute to be vanished completely, not just set to "0". Because I have
> error "The request failed schema validation: The
> 'http://schemas.xmlsoap.org/soap/envelope/:mustUnderstand' attribute is
> not declared." Do you know how to do that? Thanks!
>
--
View this message in context:
http://old.nabble.com/-Axis2--How-Do-I-Set-mustUnderstand%3D%220%22--tp13502520p29727373.html
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]