axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michelantonio Trizio" <mikelantonio.tri...@gmail.com>
Subject Re: session problem
Date Fri, 04 Apr 2008 08:00:44 GMT
This code is in a service that invoke another service in the same
servicegroup.
Thank you.

                             Michelantonio

2008/4/4, Deepal Jayasinghe <deepal@opensource.lk>:
>
>
>
>
>
> >
> > I'd like someone make a comment on my solution.
> > Thanks
> >                 Mikelantonio
> >
> > ServiceGroupContext
> > sgc=MessageContext.getCurrentMessageContext().getServiceGroupContext();
> >
> Is this code in client side or the server side ?
>
> > HashMap<QName,OMElement> map=new HashMap<QName,OMElement>();
> >    QName qn=new QName("http://ws.apache.org/namespaces/axis2",
> > "ServiceGroupId");
> >    OMElement el = AXIOMUtil.stringToOM("<axis2:ServiceGroupId
> > xmlns:axis2=\"http://ws.apache.org/namespaces/axis2\<http://ws.apache.org/namespaces/axis2%5C><
> > http://ws.apache.org/namespaces/axis2%5C>" xmlns:wsa=\"
> > http://www.w3.org/2005/08/addressing\<http://www.w3.org/2005/08/addressing%5C><
> > http://www.w3.org/2005/08/addressing%5C>"
> > wsa:IsReferenceParameter=\"true\">"+sgc.getId()+"</axis2:ServiceGroupId>");
> >    map.put(qn, el);
> >    AdministratorServiceStub ass=new AdministratorServiceStub("
> > http://localhost:8080/Profiler0.1/services/AdministratorService");
> >    ass._getServiceClient().engageModule("addressing-1.3");
> >    ass._getServiceClient().getOptions().setManageSession(true);
> >
> >  ass._getServiceClient().getOptions().getTo().setReferenceParameters(map);
> >
> Please have a look at his too
> http://wso2.org/library/3184
>
> Thank you!
> Deepal
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
It's creepy, but here we are, the Pilgrims, the crackpots of our time,
trying to establish our own alternate reality. To build a world out of rocks
and chaos. What it's going to be, I don't know. Even after all that rushing
around, where we've ended up is the middle of nowhere in the middle of the
night. And maybe knowing isn't the point. Where we're standing right now, in
the ruins in the dark, what we build could be anything. [Choke - Chuck
Palahniuk]

Mime
View raw message