怎么设置CXF用指定WSDL进行发布webservice
如何设置CXF用指定WSDL进行发布webservice
设置wsdlLocation属性
<?xml version="1.0" encoding="UTF-8"?> <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" /> <jaxws:endpoint wsdlLocation="classpath:META-INF/cxf/BusinessDataInformation.wsdl" id="BusinessDataInformation" address="/BusinessDataInformation" implementor="cn.com.bps.io.output.BusinessDataInformationImpl" > <jaxws:features> <bean class="org.apache.cxf.feature.LoggingFeature"/> </jaxws:features> <jaxws:inInterceptors> <bean class="cn.com.bps.security.webservice.SoapInterceptorHandler" /> </jaxws:inInterceptors> </jaxws:endpoint> </beans>