我们正在调用一个Web服务,其中RequestDetails
是一个输入对象,并收到以下错误。我在多个论坛上看到,如果客户端和Web服务端的字段不匹配,则会出现“无效元素”相关错误。任何人都可以对此有所了解吗?
55-a002-d59e5869552f|884ce533-9236-42e0-bb2c-93beeefddc38|en_GB - xyzabc|m023}
12:15:21,784 [ebContainer : 1] ERROR : oteservice.impl.m023.SendwantRequestExt: Requesting want failed. AxisFault thrown. {JQU|||||c86d4f9c-a493-4e5a-a2ce-d52bee2128b5|884ce533-9236-42e0-bb2c-93beeefddc38|en_GB - xyzabc|m023}
org.apache.axis2.AxisFault: org.xml.sax.SAXException: Invalid element in com.ABC.wm.eu.webserviceapp.ejb.ws.RequestDetails - standardField
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at com.ABC.applica.v1.privateservices.orderentrytreasurymanagement.extension.wantservice.impl.m023.ws.LocalServiceStub.requestwant(LocalServiceStub.java:773)
at com.ABC.applica.v1.privateservices.orderentrytreasurymanagement.extension.wantservice.impl.m023.SendwantRequestExt.sendwantRequest(SendwantRequestExt.java:183)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
答案 0 :(得分:2)
找出原因是什么。输入类standardField
中缺少字段RequestDetails
。