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 Michelantonio Trizio <mi...@gmail.com> on 2008/03/28 16:49:03 UTC
add & get parameter from context in servicegroup
Hello,
I'm just working with Servicegroup.
But I can't get parameter that I have had to the same contextgroup.
I'd like to do something like this:
On service1
AxisServiceGroup asg=MessageContext.getCurrentMessageContext
().getAxisServiceGroup();
asg.addParameter("utonto", user1);
On service2
AxisServiceGroup asg=MessageContext.getCurrentMessageContext
().getAxisServiceGroup();
String utonto=asg.getParameter("utono").toString();
The services.xml is write fine, but when I print utonto in service2 return
me null.
What shall I do?
Thank you
Mikelantonio
--
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]
Re: add & get parameter from context in servicegroup
Posted by Deepal jayasinghe <de...@gmail.com>.
Michelantonio Trizio wrote:
> Hello,
>
> I'm just working with Servicegroup.
> But I can't get parameter that I have had to the same contextgroup.
> I'd like to do something like this:
>
> On service1
>
> AxisServiceGroup
> asg=MessageContext.getCurrentMessageContext().getAxisServiceGroup();
> asg.addParameter("utonto", user1);
>
> On service2
>
> AxisServiceGroup
> asg=MessageContext.getCurrentMessageContext().getAxisServiceGroup();
> String utonto=asg.getParameter("utono").toString();
>
> The services.xml is write fine, but when I print utonto in service2
> return me null.
> What shall I do?
If you have added the parameter in the service level (in the
services.xml) then you need to get that from the AxisService , not from
the service group.
Thank you!
Deepal
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org