Thanks Allen

That was the only way i figured to get the name too. But i was hoping
that the name would be available as some property in the Message
Context. Do you have any idea why the name of the method isnt made
available in the Message Context( as a property) ???.

Vidyanand.

-----Original Message-----
From: Allen J. Sherer [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 7:57 AM
To: [EMAIL PROTECTED]
Subject: RE: Getting the name of hte method



This is the only way I found to do it... it seems pretty messy.
Hopefully there is a better way.

 // retrieve incoming request's method name.
 String method = ((RPCElement)msgContext.getRequestMessage()
                                        .getSOAPEnvelope()
                                        .getFirstBody())
                                        .getMethodName();

Allan



 

                    <Geza.Szocs@n

                    okia.com>            To:
<[EMAIL PROTECTED]>

                                         cc:

                    04/22/2002           Subject:     RE: Getting the
name of hte method

                    01:53 AM

                    Please

                    respond to

                    axis-user

 

 





Yeah, this is a very good question. I want to know this myself.

And one other thing: I need to use an Axis generated (WSDL2Java) client.
What I also need is to pass some extra information to the handlers
through this client. This information is not in the WSDL, so the
generated
code will not contain it. This client code is generated automatically,
so there is no way for me to edit it. Of course I can write a generator
myself, but ... you know ... I'm not in that mood. :)
Any tips for doing this ? Is there any way to put some information
(properties) into the Stub ?


> I am writing an handler in the request flow. For one of the operations
> the handler needs to know what the name of the method that is being
> invoked.




Reply via email to