Hello,
Yes.. Deepal showed me on how to retrieve the information from MessageContext object.
But, still need the information on the following
1) I need a way to differentiate between client handlers ( that sends webservice requests) and server handlers(that handles the webservice requests). But the XML schema allows me to register the handlers as IN, OUT(INFAULT, OUTFAULT). When the client(servlet) and server(webserivce) happens to run in the same server process, I really do not know where the request is being processed. Is there anyway that segregates the client side processing from server side?
2) A way to retrieve the following information with in Global Handlers i,e
public void invoke(org.apache.axis2.context.MessageContext context) {
}
On server side:
1. Port name
2. Parameter names
3. Parameter types & values
4. Service WSDL file location
On Client side:
1. WSDL Port name (the unqualified port name)
2. Target endpoint address (includes transport name in prefix)
3 Parameter queue name list
4. Service reference name
| "Anne Thomas Manes"
<[EMAIL PROTECTED]>
10/06/2006 05:15 PM |
|
Deepal responded and told you what was accessible from the message context.
In the future, please send messages to the list rather than to me personally.
On 10/6/06, Murali K Surampalli <[EMAIL PROTECTED]> wrote:
Hi Anne,
Basically I have two requirements.
1) I need a way to differentiate between client handlers ( that sends webservice requests) and server handlers(that handles the webservice requests). But the XML schema allows me to register the handlers as IN, OUT(INFAULT, OUTFAULT). When the client(servlet) and server(webserivce) happens to run in the same server process, I really do not know where the request is being processed. Is there anyway that segregates the client side processing from server side?
2) I need to extract the following parameters in my handler just by using
org.apache.axis2.context.MessageContext and its related API.
On server side:
1. Transport name ( cotext.getTransportName() is returning NULL on serverside )
2. Port name
3. Operation name
4. Parameter names
5. Target namespace
6. Parameter types & values
7. Service WSDL file location
8. SOAP Envelope
9.
On Client side:
1. WSDL Port name (the unqualified port name)
2. WSDL Operation name
3. Transport name
4. Target endpoint address (includes transport name in prefix)
5. Parameter queue name list
6. Service reference name
7. Response message - this is accessible through the MessageConext object.
Can you please provide your thoughts on this ASAP?
Thanks & Regards
Murali Krishna.S
WAS PMI Development
India Software Labs,
6th Floor, Embassy Golf Links,
Indiranagar-Kormangala Intermediate Ring Road,
Domlur, Bangalore - 560 071.
Tel: +91-80-41927674
Internet email: [EMAIL PROTECTED]
--------------------------------------------------------------------------------------------------------
When some one says this is the limit.............. prove them wrong!!!
Yes.. Deepal d
| "Anne Thomas Manes"
<[EMAIL PROTECTED]>
10/05/2006 05:29 PM
|
|
Once you retrieve the WSDL location, you can get the WSDL, and then
use WSDL4J to retrieve all the other information from the WSDL.
Anne
On 10/3/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
> Hi Murali;
> is this about Axis2 ? or Axis 1.x
>
> if it is Axis2 pls see my comment in-line
>
> Murali K Surampalli wrote:
>
> >
> > Hello all,
> > I am in a process of writing a global handler and in it's invoke() I need
> > to retrieve the following information.
> >
> > wsdlLocation
>
> hmm , if the request come thu HTTP url (say inside tomcat) , then you
> can get the wsdllocation as follows
> wsdlLocation = targetEPR + "?wsdl"
>
> > serviceName
>
> You can get that using message context or , you can get the by looking
> at the epr (if the epr is http://localhost:8080/axis2/services/MyService
> then service name would be MyService)
>
> > targetNamespace
>
> AxisService service = msgCtx.getAxisService();
> service.getTargetNamespace();
>
> > portName
>
> There is no way to get that.
>
> > wsdlLocation
> > serviceName
> > targetNamespace
> > portName
> >
> > Can someone help me on what API should I use to access the above info?
> > Thanks & Regards
> >
> > Murali Krishna.S
> > WAS PMI Development
> > India Software Labs,
> > 6th Floor, Embassy Golf Links,
> > Indiranagar-Kormangala Intermediate Ring Road,
> > Domlur, Bangalore - 560 071.
> > Tel: +91-80-41927674
> > Internet email: [EMAIL PROTECTED]
> > --------------------------------------------------------------------------------------------------------
> > When some one says this is the limit.............. prove them wrong!!!
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
