怎么设置CXF用指定WSDL进行发布webservice

如题所述

  设置wsdlLocation属性
  < xml version="1.0" encoding="UTF-8" > <beans xmlns="" xmlns:xsi="" xmlns:jaxws="" xsi:schemaLocation=" x/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>
温馨提示:答案为网友推荐,仅供参考
相似回答