You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Richard Craig <ri...@ubusha.co.za> on 2012/06/22 14:01:33 UTC

Axis 2 - Get the SOAPAction

Hi

I was hoping someone could help me out here. I need to print the SOAPAction
for each incoming call. Can someone explain how I could do this?
I'm currently using Axis 2. Thanks.

Kind Regards
Richard Craig (BTech IT)
Ubusha Technologies

<http://goo.gl/TwCCW>Ubusha Technologies is a member of the Aptronics
group: http://www.aptronicsgroup.com
View disclaimer at
http://www.ubusha.co.za/Home/terms-and-conditions/maildisclaimer

-- 

------------------------------
Ubusha Technologies is a member of the Aptronics Group

See:  http://www.aptronicsgroup.com/

View disclaimer at 
http://www.ubusha.co.za/Home/terms-and-conditions/maildisclaimer
------------------------------


Re: Axis 2 - Get the SOAPAction

Posted by Morgan Humes <mh...@globalinx.com>.
In the following example both Strings (a and b) result in the same 
string.  I saw "urn:action" in both cases.  Hope this helps.

             MessageContext ctx = MessageContext.getCurrentMessageContext();
             String a = ctx.getSoapAction();
             String b = ctx.getAxisOperation().getInputAction();

Morgan Humes


On 06/22/2012 08:01 AM, Richard Craig wrote:
> Hi
>
> I was hoping someone could help me out here. I need to print the 
> SOAPAction for each incoming call. Can someone explain how I could do 
> this?
> I'm currently using Axis 2. Thanks.
>
> Kind Regards
> Richard Craig (BTech IT)
> Ubusha Technologies
>
> Ubusha Technologies is a member of the Aptronics group: 
> http://www.aptronicsgroup.com <http://www.aptronicsgroup.com/>
> View disclaimer at 
> http://www.ubusha.co.za/Home/terms-and-conditions/maildisclaimer
>
>
>
> ------------------------------------------------------------------------
> Ubusha Technologies is a member of the Aptronics Group
>
> See: http://www.aptronicsgroup.com/ <http://www.aptronicsgroup.com/>
>
> View disclaimer at 
> http://www.ubusha.co.za/Home/terms-and-conditions/maildisclaimer 
> <http://www.ubusha.co.za/Home/terms-and-conditions/maildisclaimer>
> ------------------------------------------------------------------------
>

Re: Axis 2 - Get the SOAPAction

Posted by Richard Craig <ri...@ubusha.co.za>.
Thanks so much. This worked like a charm :)

Kind Regards
Richard Craig (BTech IT)
Ubusha Technologies

All my hope is in Jesus.

<http://goo.gl/TwCCW>Ubusha Technologies is a member of the Aptronics
group: http://www.aptronicsgroup.com
View disclaimer at
http://www.ubusha.co.za/Home/terms-and-conditions/maildisclaimer



On 22 June 2012 23:14, Deepal Jayasinghe <de...@opensource.lk> wrote:

>  You simply need to add a handler ( module) and get the message context,
> from the message context you can get the soap actions.  Following might
> help you to get an idea:
> http://blogs.deepal.org/2009/02/writing-axis2-module.html
>
> Deepal
>
> Hi
>
>  I was hoping someone could help me out here. I need to print the
> SOAPAction for each incoming call. Can someone explain how I could do this?
> I'm currently using Axis 2. Thanks.
>
>  Kind Regards
> Richard Craig (BTech IT)
> Ubusha Technologies
>
> Ubusha Technologies is a member of the Aptronics group:
> http://www.aptronicsgroup.com
> View disclaimer at
> http://www.ubusha.co.za/Home/terms-and-conditions/maildisclaimer
>
>
>
>   ------------------------------
>  Ubusha Technologies is a member of the Aptronics Group
>
> See:  http://www.aptronicsgroup.**com/ <http://www.aptronicsgroup.com/>
>
>  View disclaimer at http://www.ubusha.co.za/**Home/terms-and-conditions/**
> maildisclaimer<http://www.ubusha.co.za/Home/terms-and-conditions/maildisclaimer>
>   ------------------------------
>
>
> --
> Blog - http://blogs.deepal.org/
>

-- 

------------------------------
Ubusha Technologies is a member of the Aptronics Group

See:  http://www.aptronicsgroup.com/

View disclaimer at 
http://www.ubusha.co.za/Home/terms-and-conditions/maildisclaimer
------------------------------


Re: Axis 2 - Get the SOAPAction

Posted by Deepal Jayasinghe <de...@opensource.lk>.
You simply need to add a handler ( module) and get the message context, 
from the message context you can get the soap actions.  Following might
help you to get an idea:
http://blogs.deepal.org/2009/02/writing-axis2-module.html

Deepal

> Hi 
>
> I was hoping someone could help me out here. I need to print the
> SOAPAction for each incoming call. Can someone explain how I could do
> this?
> I'm currently using Axis 2. Thanks.
>
> Kind Regards
> Richard Craig (BTech IT)
> Ubusha Technologies
>
> Ubusha Technologies is a member of the Aptronics group:
> http://www.aptronicsgroup.com <http://www.aptronicsgroup.com/>
> View disclaimer at
> http://www.ubusha.co.za/Home/terms-and-conditions/maildisclaimer
>
>
>
> ------------------------------------------------------------------------
> Ubusha Technologies is a member of the Aptronics Group
>
> See:  http://www.aptronicsgroup.com/ <http://www.aptronicsgroup.com/>
>
> View disclaimer
> at http://www.ubusha.co.za/Home/terms-and-conditions/maildisclaimer
> <http://www.ubusha.co.za/Home/terms-and-conditions/maildisclaimer>
> ------------------------------------------------------------------------
>

-- 
Blog - http://blogs.deepal.org/