XFire调用CXF服务端,控制台报错

XFire生成客户端代码,调用CXF发布的服务

1.可以正常调用无参的服务,如getWeather()

2.调用带参的服务就抛如下错误,如getWeather("hello");

费解!!费解!!谁来给我解决一下??

Exception in thread "main" org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Unmarshalling Error: unexpected element (uri:"http://beanReport.birt.hmykt.com.cn/", local:"arg0"). Expected elements are <{}arg0>
org.codehaus.xfire.fault.XFireFault: Unmarshalling Error: unexpected element (uri:"http://beanReport.birt.hmykt.com.cn/", local:"arg0"). Expected elements are <{}arg0>
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 $Proxy7.buildReportRptdesign(Unknown Source)
at cn.com.hmykt.birt.beanreport.BuildReportHandleServiceClient.main(BuildReportHandleServiceClient.java:100)

你可能感兴趣的:(thread,exception,SOAP,nested)