怎么设置CXF用指定WSDL进行发布webservice
1个回答
推荐于2016-11-03 · 知道合伙人数码行家
可以叫我表哥
知道合伙人数码行家
向TA提问 私信TA
知道合伙人数码行家
采纳数:25897
获赞数:1464984
2010年毕业于北京化工大学北方学院计算机科学与技术专业毕业,学士学位,工程电子技术行业4年从业经验。
向TA提问 私信TA
关注
展开全部
设置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>
< 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>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询