1
的绑定我正在使用apache cxf + spring,东西在eclipse中运行,但不在命令行中运行。继续得到错误无法解析绑定无法解析http://schemas.xmlsoap.org/wsdl/soap/
的绑定我正在使用apache cxf + spring,东西在eclipse中运行,但不在命令行中运行。继续得到错误无法解析绑定无法解析http://schemas.xmlsoap.org/wsdl/soap/
解决方案:
第二步:如果您使用的弹簧,CXF,确保添加下列内容@Configuration类
@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