You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Antonio De Berardis <an...@chevaliergestion.fr> on 2011/04/27 12:15:38 UTC
web service client info
Hi,
how can I get informations about web service client? I need to know the
ip address of a web service consumer.
I tried
@Resource
WebServiceContext wsContext;
...
MessageContext msgx = wsContext.getMessageContext();
and
MessageContext msgx = MessageContext.getCurrentContext();
but I got nullPointerException.
Thanks.
Antonio
Re: web service client info
Posted by Simon Laws <si...@googlemail.com>.
On Wed, Apr 27, 2011 at 11:15 AM, Antonio De Berardis
<an...@chevaliergestion.fr> wrote:
> Hi,
> how can I get informations about web service client? I need to know the
> ip address of a web service consumer.
>
> I tried
> @Resource
> WebServiceContext wsContext;
> ...
>
> MessageContext msgx = wsContext.getMessageContext();
>
> and
>
> MessageContext msgx = MessageContext.getCurrentContext();
>
> but I got nullPointerException.
>
> Thanks.
>
> Antonio
>
Hi Antonio
I don't believe you can just at the moment. Having said that there was
a long debate on this subject a few weeks back [1] and it looks like
we were concluding that we need a mechanism to make context available.
What code base are you working on? We haven't got round to doing
anything about it yet but when we do I imagine it will be on 2.x. If
you interested in helping out then you're very welcome to.
[1] http://www.mail-archive.com/dev@tuscany.apache.org/msg15519.html
Simon
--
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com