I have developed a service in CXF and my service implementation class which
defines a setter injection method for Delegate which actually performs the
business logic.
After deploying the service, in the WSDL generated by CXF I see the schema
with elements for setServiceDelegate and 
setServiceDelegateResponse. Is there a way can I annotate and make certain
methods in my service implementation class transient so that I don't want to
have their type information published in the WSDL.
Please see the following code snippets of implementation class and spring
configuration. I am using CXF2.0.


public class FooServiceImpl implements FooService {

        private FooServiceDelegateIntf serviceDelegate=null;
        
        public void setServiceDelegate(FooServiceDelegateIntf delegate) {
                this.serviceDelegate = delegate;
        }

//... Web Service methods..

}


<beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns:jaxws="http://cxf.apache.org/jaxws";
        xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd";>

        <import resource="classpath:META-INF/cxf/cxf.xml" />
        <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
        <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
        
        <bean id="fooWebService"
                class="com.mydomain.FooServiceImpl">
                <property name="serviceDelegate" 
ref="fooServiceDelegate"></property>
        </bean>
        
        <jaxws:endpoint id="fooService" implementor="#fooWebService"
                address="/FooService"/>
                
</beans>

-- 
View this message in context: 
http://www.nabble.com/CXF-adding-types-for-setter-injection-methods-tf4179440.html#a11884764
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to