无法解析http://schemas.xmlsoap.org/wsdl/soap/的绑定 [英] Could not resolve a binding for http://schemas.xmlsoap.org/wsdl/soap/

查看:116
本文介绍了无法解析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. 第1步:使用maven shade插件

  2. 第2步:如果你使用带cxf的spring,请确保在@Configuration类中添加以下内容

  1. step1: using maven shade plugin
  2. 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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆