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 aditya chitre <ch...@gmail.com> on 2011/03/29 06:16:08 UTC

Exclude operations programmatically

Hi All,

Is there a way in axis2 to programmatically exclude some operations of a
service?
In my project I am creating my services programmatically and I want to
exclude some of the operations.

Regards,
Aditya

Re: Exclude operations programmatically

Posted by Sanka Samaranayake <ss...@gmail.com>.
On Tue, Mar 29, 2011 at 6:16 AM, aditya chitre <ch...@gmail.com> wrote:
> Hi All,
>
> Is there a way in axis2 to programmatically exclude some operations of a
> service?
> In my project I am creating my services programmatically and I want to
> exclude some of the operations.

AxisService service = .. ;
QName opName =  .. (name of the operation to be removed)
service.removeOperation(opName);

HTH
Sanka

>
> Regards,
> Aditya



-- 
Sanka Samaranayake

PMC Member, Committer, Apache Software Foundation, http://www.apache.org/

Telephone: +34 677 864358
Email: sanka AT apache DOT org
Blog: http://sankas.blogspot.com/
Linked-in: http://lk.linkedin.com/pub/sanka-samaranayake/4/b2b/3b3

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: Exclude operations programmatically

Posted by Deepal jayasinghe <de...@gmail.com>.
have a look the following article
http://wso2.org/library/2060

Deepal
> Hi All,
>  
> Is there a way in axis2 to programmatically exclude some operations of
> a service?
> In my project I am creating my services programmatically and I want to
> exclude some of the operations.
>  
> Regards,
> Aditya


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org