Hi Deepal! Thanks for answering! That´s what I wanna do: I have two
services. Service A and service B. Both are stateful, and they may not be on
the same server. Service A proccess the client's invocations and
consequently update the session state. Service B is a backup service and
sometimes need to have it's session updated with the values in service A's
state. To do this, I serialize the context in A and send it to B as a
string. In B I rebuild it and try to set B's context with this value. But
then I get that error. I'm using MessageContext to access the ServiceContext
where my values are saved.
I use "MessageContext.getCurrentMessageContext().getServiceContext" to do
this.



Thanks again!




2008/9/23 Deepal jayasinghe <[EMAIL PROTECTED]>

> >
> > Hello guys!
> >  I get the "ServiceContext in OperationContext does not match" error
> > this error when I try to do this:
> >
> > I have 2 webservices: Service A and B. All the invocations are sent to
> > service A. So, service A has the actual state in it's session.
> > Then I serialize the MessageContext in A and send it as a string to
> > service B. In B, I rebuild MessageContext, activate it and try to set
> > B's context.
> Why do you need  to have a message context (I mean new) to send from A
> to B ?
>
> Can you please provide some more information on what exactly you are
> trying yo do here.
>
> Thank you!
> Deepal
>
> --
> Thank you!
>
>
> http://blogs.deepal.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to