Hi all,
i need to add somethings in the header of RESPONSE from service.
I can use out handler but, unfortunately, this will be a pain for this
service.
So consider i have a web service with:
public OMElement serviceFunction(OMElement element){
...
return [OMElement]
}
and i need to access to the response header just before the "return".
Is this possible?
I tryed somethings like:
MessageContext responseMessageContext
=MessageContext.getCurrentMessageContext().getOperationContext().getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
OMElement omelem=XMLUtils.toOM(elementm);
SOAPFactory fac=OMAbstractFactory.getSOAP12Factory();
SOAPHeader hdd=fac.createSOAPHeader();
hdd.addChild(omelem);
responseMessageContext.setProperty(HTTPConstants.HTTP_HEADERS, hdd);
But nothing happen, can someone help me? Thx in advice.
Bye,
Alessio.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org