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 haipeng du <ha...@gmail.com> on 2010/07/16 18:23:24 UTC
block method from service.xml
I have one java service class to handle webservice call. And there are some
methods I do not want to expose. How could I modify service.xml to block
these methods?
Thanks a lot.
--
Haipeng Du
Salt Lake City
Re: block method from service.xml
Posted by robert lazarski <ro...@gmail.com>.
On Fri, Jul 16, 2010 at 1:23 PM, haipeng du <ha...@gmail.com> wrote:
> I have one java service class to handle webservice call. And there are some
> methods I do not want to expose. How could I modify service.xml to block
> these methods?
> Thanks a lot.
>
Google on excludeOperations in services.xml , its in the docs.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org
Re: block method from service.xml
Posted by Charles Galpin <cg...@lhsw.com>.
Hi Haipeng. You can use the following
import javax.jws.WebMethod;
…
@WebMethod(exclude=true)
void someMethodYouWantToExclude()
hth
charles
On Jul 16, 2010, at 12:23 PM, haipeng du wrote:
> I have one java service class to handle webservice call. And there are some methods I do not want to expose. How could I modify service.xml to block these methods?
> Thanks a lot.
>
> --
> Haipeng Du
> Salt Lake City
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org
Re: block method from service.xml
Posted by Nadir Amra <am...@us.ibm.com>.
Currently, you can block methods using excludeOperations in services.xml
as follows:
<excludeOperations>
<operation>op1</operation>
</excludeOperations>
However, this only works when the WSDL is generated dynamically by the
Axis2 engine. There is a JIRA
https://issues.apache.org/jira/browse/AXIS2-4440 that will ensure this
feature works for static WSDL files.
Nadir Amra
Integrated Web Services for IBM i Operating System
Internet: amra@us.ibm.com
Afkham Azeez <af...@gmail.com> wrote on 07/19/2010 06:28:14 AM:
> [image removed]
>
> Re: block method from service.xml
>
> Afkham Azeez
>
> to:
>
> java-user
>
> 07/19/2010 06:29 AM
>
> Cc:
>
> axis-user
>
> Please respond to java-user
>
> http://wso2.org/library/2060
>
> On Fri, Jul 16, 2010 at 9:53 PM, haipeng du <ha...@gmail.com> wrote:
> > I have one java service class to handle webservice call. And there are
some
> > methods I do not want to expose. How could I modify service.xml to
block
> > these methods?
> > Thanks a lot.
> >
> > --
> > Haipeng Du
> > Salt Lake City
> >
>
>
>
> --
> Afkham Azeez
> Senior Software Architect & Product Manager, WSO2 WSAS; WSO2, Inc.;
> http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> email: azeez@wso2.com cell: +94 77 3320919
> blog: http://blog.afkham.org
> twitter: http://twitter.com/afkham_azeez
> linked-in: http://lk.linkedin.com/in/afkhamazeez
>
> Lean . Enterprise . Middleware
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org
Re: block method from service.xml
Posted by Afkham Azeez <af...@gmail.com>.
http://wso2.org/library/2060
On Fri, Jul 16, 2010 at 9:53 PM, haipeng du <ha...@gmail.com> wrote:
> I have one java service class to handle webservice call. And there are some
> methods I do not want to expose. How could I modify service.xml to block
> these methods?
> Thanks a lot.
>
> --
> Haipeng Du
> Salt Lake City
>
--
Afkham Azeez
Senior Software Architect & Product Manager, WSO2 WSAS; WSO2, Inc.;
http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
email: azeez@wso2.com cell: +94 77 3320919
blog: http://blog.afkham.org
twitter: http://twitter.com/afkham_azeez
linked-in: http://lk.linkedin.com/in/afkhamazeez
Lean . Enterprise . Middleware
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org