Great, this worked!!!
Thank you.
Regards,
Abhijeet C Kale
On 11/1/2011 1:01 PM, Sagara Gunathunga wrote:
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





---------------------------------------------------------------------
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