how to control exposing public methods of a Service bean.

gulamws02's picture

Is their a way to control, which public methods of a ServiceBean are exposed as operations of the web-service;

For Ex: My service bean has two public method

public Class MyService {

public void createExposeMethod() { // impl logic }

public void createNotExposeMethod() { // impl logic }

}

beans.xml I define,

<bean id="services" class="org.wso2.spring.ws.WebServices">
        <property name="services">
            <list>
    <bean id="sampleService" class="org.wso2.spring.ws.SpringWebService">
     <property name="serviceName" value="SampleWebService"/>
     <property name="serviceBean" ref="myService"/>
     <property name="serviceDescription" value="This is a Sample Service"/>
    </bean>
   </list> 
  </property>
</bean>

The generated wsdl has "createNotExposeMethod" and "createExposeMethod". How can I ensure that "createNotExposeMethod" is not exposed and is not available in the wsdl. Thanks, Guls.

 

 

library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)