无法解析http://schemas.xmlsoap.org/wsdl/soap/的绑定 [英] Could not resolve a binding for http://schemas.xmlsoap.org/wsdl/soap/
问题描述
我正在使用apache cxf + spring,这些东西在eclipse中运行但不在命令行中运行。继续得到错误无法解决绑定
I am using apache cxf + spring, the stuff runs in eclipse but not in command line. keep get the error could not resolve binding
推荐答案
解决方案:
- 第1步:使用maven shade插件
-
第2步:如果你使用带cxf的spring,请确保在@Configuration类中添加以下内容
- step1: using maven shade plugin
step2: if you are using spring with cxf, making sure add following to your @Configuration class
@ImportResource({classpath:META-INF / cxf / cxf.xml,classpath:META-INF / cxf / cxf-extension http.xml,classpath:META -INF / cxf / cxf-extension-soap.xml})
@ImportResource( { "classpath:META-INF/cxf/cxf.xml", "classpath:META-INF/cxf/cxf-extension http.xml", "classpath:META-INF/cxf/cxf-extension-soap.xml" } )
或
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
信贷很大
http://www.java-allandsundry.com/2011/01/orgapachecxfservicefactoryserviceconstr.html
这篇关于无法解析http://schemas.xmlsoap.org/wsdl/soap/的绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!