You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Erwin Reinhoud <Er...@ictu.nl> on 2008/09/17 15:21:25 UTC

Axis2 WS-Addressing messageid in response

 
Hello All,

Wondering if anyone could tell me how to set the wsa:MessageID for a
reply message from a service with a custom format.

Thanks in advance.

Kind regards,
erwin

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis2 WS-Addressing messageid in response

Posted by Brian De Pradine <PR...@uk.ibm.com>.
Hi Erwin,

Something like the following should work,

MessageContext inContext = MessageContext.getCurrentMessageContext();
OperationContext operationContext = 
inMessageContext.getOperationContext();
MessageContext outMessageContext = 
operationContext.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
outMessageContext.setMessageID(...);

Cheers

Brian DePradine
Web Services Development
IBM Hursley
External  +44 (0) 1962 816319         Internal 246319

If you can't find the time to do it right the first time, where will you 
find the time to do it again?


"Erwin Reinhoud" <Er...@ictu.nl> wrote on 17/09/2008 14:21:25:

> 
> Hello All,
> 
> Wondering if anyone could tell me how to set the wsa:MessageID for a
> reply message from a service with a custom format.
> 
> Thanks in advance.
> 
> Kind regards,
> erwin
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 






Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU