Exception in thread "main"

org.codehaus.xfire.XFireRuntimeException: Could not invoke

service.. Nested exception is org.codehaus.xfire.fault.XFireFault:

Unexpected element:

{http://www.w3.org/2004/08/xop/include}Include

org.codehaus.xfire.fault.XFireFault: Unexpected element:

{http://www.w3.org/2004/08/xop/include}Include

at

org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)

at

org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(SoapFaultSerializer.java:28)

at

org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(ReadHeadersHandler.java:111)

at

org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:67)

at

org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)

at

org.codehaus.xfire.client.Client.onReceive(Client.java:406)

at

org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)

at

org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)

at

org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)

at

org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)

at

org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)

at

org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)

at

org.codehaus.xfire.client.Client.invoke(Client.java:336)

at

org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)

at

org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)

at $Proxy0.setByteArray(Unknown Source)

at

com.sfj.controller.RecordController.main(RecordController.java:191)

传输DataHandler 错误。。。

我的原因配置文件错误。

a4c26d1e5885305701be709a3d33442f.png

修改为

/>

服务器端配置

web.xml

a4c26d1e5885305701be709a3d33442f.png

applicationContext.xml

a4c26d1e5885305701be709a3d33442f.png

xfire-servlet.xml

a4c26d1e5885305701be709a3d33442f.png

客户端调用:

a4c26d1e5885305701be709a3d33442f.png

MTOM and the

Aegis Binding

The

Aegis (aka POJO) binding has support for optimization of the

following classes:

DataSource

DataHandler

byte[]

You could also write your own by extending the

AbstractXOPType.

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐