`
阅读更多
2012-7-20 17:08:58 org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
信息: Creating Service {http://external.service.imagemanage.huge.com/}IImageServiceService from class com.huge.imagemanage.service.external.IImageService
2012-7-20 17:08:59 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
信息: Interceptor has thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: "http://schemas.xmlsoap.org/wsdl/", the namespace on the "definitions" element, is not a valid SOAP version.
	at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:94)
	at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:56)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:208)
	at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:429)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1955)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1791)
	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
	at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:575)
	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:208)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
	at $Proxy33.upload(Unknown Source)
	at TestCXF.main(TestCXF.java:22)
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: "http://schemas.xmlsoap.org/wsdl/", the namespace on the "definitions" element, is not a valid SOAP version.
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:175)
	at $Proxy33.upload(Unknown Source)
	at TestCXF.main(TestCXF.java:22)
Caused by: org.apache.cxf.binding.soap.SoapFault: "http://schemas.xmlsoap.org/wsdl/", the namespace on the "definitions" element, is not a valid SOAP version.
	at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:94)
	at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:56)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:208)
	at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:429)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1955)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1791)
	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
	at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:575)
	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:208)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
	... 2 more
不能用JaxWsProxyFactoryBean方式获取service,只能通过
                ImagService iss=new ImagService();
		iss.getImageServiceImplPort().update(arg0, arg1, arg2, arg3);
的方式获取

分享到:
评论

相关推荐

    CXF-WebService-开发指南、技术文档.docx

    通过实现`org.apache.cxf.interceptor.Fault`和`org.apache.cxf.phase.Phase`接口,可以创建自定义拦截器,并在服务上下文中注册。 **四、CXF WebService 中传递复杂类型对象** CXF允许在Web服务中传递复杂类型的...

    CXF教程.doc(例子挺详细的)

    本教程将介绍 CXF 的基础,以及与 SOAP、WSDL 相关的知识点。 首先,让我们深入了解 SOAP(Simple Object Access Protocol)。SOAP 是一种轻量级的消息协议,它定义了消息的结构和如何通过网络进行交换。SOAP 消息...

    apache-cxf-3.1.15.zip

    5. **错误处理**:CXF生成的客户端代码会自动处理Web服务调用中可能出现的错误,比如HTTP错误代码或SOAPFault。这使得客户端代码更加健壮和易于调试。 6. **安全性**:CXF支持各种安全特性,如基本认证、证书认证、...

    cxf开发实例

    通过实现`org.apache.cxf.interceptor.Fault`和`org.apache.cxf.phase.Phase`接口,你可以创建自己的拦截器,并在适当阶段注入到CXF管道中。 ### 四、CXF WebService 中传递复杂类型对象 在CXF中,可以方便地处理...

    cxf经典学习资料-2

    Apache CXF是一个开源的Java框架,用于构建和部署SOAP(Simple Object Access Protocol)和RESTful(Representational State Transfer)Web服务。这份资料集合了CXF的核心概念、配置、扩展以及与其他技术的集成,...

    CXF教程精讲

    同时,CXF 支持多种传输协议和数据绑定机制,如 HTTP、HTTPS、JMS 等,以及 JAXB (Java Architecture for XML Binding) 和 XMLBeans 等数据绑定框架。 总结来说,学习 CXF 教程,你需要掌握 SOAP 协议的基础知识,...

    java cxf webService

    6. **数据绑定**:CXF支持多种数据绑定机制,如JAXB(Java Architecture for XML Binding)用于将Java对象与XML结构之间进行转换。在服务方法的参数和返回值中使用Java对象,CXF会自动处理XML序列化和反序列化。 7....

    WebService开发指南

    - **CXF**:结合了XFire和Apache Axis的优点,提供了更加强大和灵活的WebService解决方案。 4. **安全性**: - **SOAP头验证**:通过在SOAP消息头部添加安全信息来验证消息的来源。 - **服务端代码生成**:根据...

Global site tag (gtag.js) - Google Analytics