On Tue, Nov 1, 2011 at 10:50 AM, Abhijeet C Kale <ak...@etouch.net> wrote:
> Hi,
>
> Is there anyway to control the methods to be exposed in the web service
> class? I did not look much in the documentation for any support for
> annotations.
>
> Here is an eg, to elaborate on this.
> Class A is added to the service.xml as a parameter "ServiceClass". Class has
> methodA and method B implementation.
> The idea is to only expose methodA and not methodB. Is there any annotation
> support which can help doing this?

You can have following entry to exclude operations in service.xml file.

<excludeOperations>
           <operation>methodB</operation>
 </excludeOperations>

Axis2 does not provide it's own annotations but if you use JAX-WS
within Axis2 you can use @WebMethod(exclude=true).

Thanks !

>
> Thanks
> --
> Regards,
> Abhijeet C Kale
>
>



-- 
Sagara Gunathunga

Blog      - http://ssagara.blogspot.com
Web      - http://people.apache.org/~sagara/
LinkedIn - http://www.linkedin.com/in/ssagara

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

Reply via email to