On Tue, Jan 31, 2012 at 11:31 PM, <aaron.stro...@rsa.com> wrote: > Thank you very much! For the second option, the values of the parameter > are class names, are they not? Something like**** > > ** ** > > <parameter > name="SpringBeanName">com.rsa.ws.bean..BusinessServiceImplBean</parameter> > <parameter name="ServiceClass" > >com.rsa.ws.bean.BusinessService</parameter> >
When you specify ServiceObjectSupplier and SpringBeanName parameters it is possible to assign Java interface as the value of "ServiceClass" parameter. In above example BusinessService is a interface. I'm not sure whether we have documented this in details but following post [1] may helpful. [1] - http://ssagara.blogspot.com/2008/08/axis2-with-spring-aop.html Thanks ! > > **** > > Also, is this documented anywhere?**** > > ** ** > > *From:* Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com] > *Sent:* Tuesday, January 31, 2012 12:13 PM > *To:* java-user@axis.apache.org > *Subject:* Re: Methods listed by axis2/service/listServices**** > > ** ** > > You have two options here. > > 1.) Specify unwanted method names as excludeOperations in service.xml > file. > > <excludeOperations> > <operation>getUser</operation> > <operation>setUser</operation> > </excludeOperations> > > > 2.) Specify business interface as the "ServiceClass" in addition to > "SpringBeanName" parameter in service.xml. > > <parameter name="SpringBeanName">BusinessServiceImplBean</parameter> > <parameter name="ServiceClass" >BusinessService</parameter> > > 2nd option is much preferable for Spring application specially if you > have a plan to use Spring SOP related features. > > Thanks ! > **** > > On Tue, Jan 31, 2012 at 10:09 PM, <aaron.stro...@rsa.com> wrote:**** > > Hello,**** > > **** > > I have a web service using Spring which I deploy as packaged in .aar > archive. The business method of the service are defined in an interface. > I’m also using Spring and the implementation class has additional methods > for dependency injection. When the service is deployed in Tomcat and I > bring up the http://localhost:8080/axis2/service/listServices is see all > the getter methods, not just the business methods. How can I prevent > listing of the methods used for the dependency injection? TIA,**** > > **** > > -a **** > > **** > > *Aaron Stromas, Practice Consultant | **RSA** ** The Security Division > of EMC | Identity & Fraud Protection Practice | +1 240 271 6458***** > > **** > > > > > -- > Sagara Gunathunga > > Blog - http://ssagara.blogspot.com > Web - http://people.apache.org/~sagara/ > LinkedIn - http://www.linkedin.com/in/ssagara**** > -- Sagara Gunathunga Blog - http://ssagara.blogspot.com Web - http://people.apache.org/~sagara/ LinkedIn - http://www.linkedin.com/in/ssagara