web services - Apache CXF client with Spring MVC - BindingInfo is not SOAPBindingInfo -


I am working on a spring MVC project, from which I need to access a webservice (client mode) < / P>

My web service customer is a separate Maven project which is working fine with cases of Junket test

When I add it as the dependency of my Spring MVC project and I use the jar file, I am getting the following exception.

  10 Julai 2012 2:40: 09 pm org.apache.catalina.core.StandardWrapperValve cited in: servlet.service () [rest servlet] path with reference [/ mdot] Exception threw [request process failed; Nested exception is java.lang.RuntimeException: SoapBinding can not start, BindingInfo SoapBindingInfo] root cause has to do with java.lang.RuntimeException: can start on SoapBinding, BindingInfo org.apache.cxf.binding.soap.SoapBindingFactory SoapBindingInfo is not. . org.apache.cxf.endpoint.EndpointImpl.createBinding (createBinding (SoapBindingFactory.java:385) on EndpointImpl.java:135) is org.apache.cxf.endpoint.EndpointImpl & lt; Init & gt; (EndpointImpl.java:82) on org.apache.cxf.jaxws.support.JaxWsEndpointImpl on org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.createEndpoint (JaxWsServiceFactoryBean.java pm35) on Org.apache.cxf. & Lt; Init & gt; (JaxWsEndpointImpl.java:12225) .service.factory.ReflectionServiceFactoryBean.createEndpoints (ReflectionServiceFactoryBean.java:328) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create (ReflectionServiceFactoryBean.java Month 60) org.apache.cxf.jaxws .support.JaxWsServiceFactoryBean.create at (JXWSSSFitterBin.Java 202) at pache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint (AbstractWSDLBasedEndpointFactory.java:101) org.apache.cxf.frontend.ClientFactoryBean.create at org.a (ClientFactoryBean.java: 90) org.apache.cxf.jaxws.ServiceImpl at org.apache.cxf.frontend.ClientProxyFactoryBean.create (ClientProxyFactoryBean.Java: 153) org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create (JaxWsProxyFactoryBean.java:151) org.apache.cxf.jaxws.Servi .ServiceImpl.getPort (ServiceImpl.java:331) on org.apache.cxf.jaxws on createPort (ServiceImpl.java:464) Com on ceImpl.getPort (ServiceImpl.java318) at javax.xml.ws.Service.getPort (Service.java:119). test.wsdl.MyWebServiceSOAP_Service.getMyWebServiceSOAPPort (MyWebServiceSOAP_Service.java:63)   

I've just found my MVC project CXF bus is already running it.

  & lt; Cxf: just & gt; & Lt; CXF: Features & gt; & Lt; Cxf: logging / & gt; & Lt; / CXF: Features & gt; & Lt; / CXF: Just & gt;   

I could not find any additional configuration but I think some reverse service interceptors are participating in my SOAP service customer or some other conflict. Any Idea?

I have made my code a web service to use Spring as a program:

  & lt; Jaxws: Customer ID = "helloClient" ServiceClass = "demo.spring.HelloWorld" address = "http: // localhost: 9002 / HelloWorld" />   

And he started working in an integrated project. Although I do not understand the reason yet If someone can tell me the reason then it would be helpful.

Thank you.

Comments