i would leave MessageId alone
as MessageID is the id for each predefined Incoming/Outgoing Message

did you try to add a new ID as a Parameter e.g:
        MessageContext mc= new MessageContext();
        final ConfigurationContext context =
                ConfigurationContextFactory.createEmptyConfigurationContext();
        mc.setConfigurationContext(context);
        Integer uniqueId=new java.lang.Integer(AnIntegerWhichIsPassedIn);
        mc.getConfigurationContext().getAxisConfiguration()
                    .addParameter("SomeUniqueID", uniqueId);

hth
Martin Gainty 
______________________________________________ 
Note de déni et de confidentialité
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




Date: Tue, 11 Aug 2009 16:20:44 +0200
Subject: Using ws-addressing in asynchronous services communication
From: hakon.sageh...@bccs.uib.no
To: axis-user@ws.apache.org

Hi all,

A general ws question so hopefully someone takes the time to answer.

I have a thought setup of two web services and one client using WS-addressing 
communicating asynchronous . And wanted to hear if this is possible. I've got 
two services A and  B, A is a main service computing some thing and this takes 
a long time, so I will send the result of this computation to service B. Where 
to put the result will be given to service A by the client using the Replayto 
header in WS-addressing spec. So fa so good I think, but it would be nice for 
the client to get an id back from service A that it can give to service B for 
quering, "is data from service a related to this invocation with id", where id 
is the id given to the client by service A.  So my questionis is it possiblefor 
service  A to give a id to the client while it replays the end result of the 
computation to service B. Or can this be acomplished using the massage id's ??


cheers, Håkon
-- 
Håkon Sagehaug, Scientific Programmer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)

_________________________________________________________________
Express your personality in color! Preview and select themes for Hotmail®. 
http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_express:082009

Reply via email to