axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robert lazarski" <robertlazar...@gmail.com>
Subject Re: Unwanted setter method exposed as web service operation using Spring
Date Mon, 09 Jul 2007 18:26:59 GMT
This should work for you, try placing this in the services.xml :

<excludeOperations>
     <operation>setProjectDao</operation>
  </excludeOperations>

HTH,
Robert

On 7/9/07, Ben Tomasini <ben.tomasini@gmail.com> wrote:
> Hello,
>
> I am using the Spring integration and seem to have a problem.  When my
> service is deployed, the WSDL shows that my setter method (setProjectDao) is
> exposed as a web service operation.  This method is only present so that
> Spring can set the dependency.  How to I exclude this method?
>
> Below is the java class and services.xml:
>
> public class ProjectService {
>
>     private ProjectDao projectDao;
>
>     public void setProjectDao(ProjectDao projectDao) {
>         this.projectDao = projectDao;
>     }
>
>     public Project[] getAll() {
>     ...
>     }
>
>     public Project getForId(BigDecimal id) {
>     ...
>     }
>
>     public Project create(Project project) {
>     ...
>     }
>
>      public Project update(Project project) {
>     ...
>     }
>
> }
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <serviceGroup>
>
>   <service name="ProjectService">
>     <parameter name="ServiceObjectSupplier"
> locked="false">org.apache.axis2.extensions
> .spring.receivers.SpringServletContextObjectSupplier</parameter>
>     <parameter name="SpringBeanName"
> locked="false">projectService</parameter>
>     <operation name="getForId">
>       <messageReceiver
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>     </operation>
>     <operation name="getAll">
>       <messageReceiver
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>     </operation>
>     <operation name="update">
>       <messageReceiver
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver
> "/>
>     </operation>
>     <operation name="create">
>       <messageReceiver
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>     </operation>
>   </service>
>
> </serviceGroup>
>

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


Mime
View raw message