怎么设置CXF用指定WSDL进行发布webservice
发布网友
发布时间:2022-05-16 21:29
我来回答
共1个回答
热心网友
时间:2023-09-11 15:22
设置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>