You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Tedman Leung <te...@sfu.ca> on 2009/04/23 22:20:31 UTC

how to get method name from SoapMessage

Does anyone know the easiest way to find out what web service and method 
is being called given the SoapMessage on the server side?

I'm trying to determine that in an InInterceptor in the handleMessage() 
method right now.

-- 
                                                           Ted Leung
                                                           tedman@sfu.ca


Re: how to get method name from SoapMessage

Posted by Daniel Kulp <dk...@apache.org>.
On Thu April 23 2009 4:20:31 pm Tedman Leung wrote:
> Does anyone know the easiest way to find out what web service and method
> is being called given the SoapMessage on the server side?
>
> I'm trying to determine that in an InInterceptor in the handleMessage()
> method right now.

Depends on where in the chain you are.    In the early parts of the chain, 
it's not really possible as the body hasn't been processed yet.  It may not 
even have been pulled off the wire.   Or it could be encrypted.   Etc.....

In the latter parts of the chain, you can call 
message.getExchange().get(BindingOperationInfo.class) and from that gather 
whatever information you want.


-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog