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