I tried it. I get back the Binding Operation Info. Which method contains the
name of the operation. There is a lot of information on that class.

On Wed, Jun 2, 2010 at 1:34 PM, Daniel Kulp <[email protected]> wrote:

> On Wednesday 02 June 2010 2:03:35 pm Chris Hardin wrote:
> > Does anyone know how to get the name of the current executing operation??
> > When I execute client code, this is populated, but when someone calls my
> > service my interceptor doesn't have the name of the requested operation.
> >
> >
> > if (message.getExchange().get( Message.WSDL_OPERATION ) != null){
> >               log.debug("Operation: " + message.getExchange().get(
> > Message.WSDL_OPERATION ).toString());
> >                operation = message.getExchange().get(
> > Message.WSDL_OPERATION ).toString();
> >             }
>
> On the server side, it would also depend on what phase your interceptor
> runs
> in.   It would have to be after the read phase where we would be
> determining
> the operation that was called.   You may also want to try:
> message.getExchange().get(BindingOperationInfo.class)
> and getting the name from that.   I'd like to deprecate WSDL_OPERATION as
> it
> does cost a little bit to calc/set when 99% of the time it isn't used and
> when
> required, can be produced from the BindingOperationInfo.
>
>
> --
> Daniel Kulp
> [email protected]
> http://dankulp.com/blog
>

Reply via email to