我正在使用與SOAP服務交互的WSO2 EI。當SOAP服務返回HTTP 500時,我有一個奇怪的情況,WSO2返回以下異常。有人能幫助我理解爲什麼會發生這種情況嗎?WSO2 EI | SOAP信封異常
http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , MessageID: urn:uuid:d176d8c6-57ff-4ee3-b5ca-e043602d6fec, Direction: response, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Envelope><soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"><wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:992bea3f-16f0-49d3-91a2-1e03375bac9c</wsa:MessageID><wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><faultcode>soapenv:</faultcode><faultstring>First Element must contain the local name, Envelope , but found PhoneNumber</faultstring><detail><Exception>org.apache.axis2.AxisFault: Exception during creation of SOAP envelope structure
at com.ibm.broker.axis2.Axis2Invoker.processInboundRequest(Axis2Invoker.java:3527)
at com.ibm.broker.axis2.Axis2Invoker.invokeAxis2(Axis2Invoker.java:3101)
at com.ibm.broker.axis2.TomcatNodeRegistrationUtil.invokeAxis2(TomcatNodeRegistrationUtil.java:669)
at com.ibm.broker.axis2.TomcatNodeRegistrationUtil.invokeAxis2(TomcatNodeRegistrationUtil.java:615)
產生的原因:org.apache.axiom.soap.SOAPProcessingException:第一個元素必須包含本地名,信封,卻發現******中國 在org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode (StAXSOAPModelBuilder.java:305) 在org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:252) 在org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createNextOMElement(StAXSOAPModelBuilder .java:234) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:249) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPMode lBuilder.java:204) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder。 < init>(StAXSOAPModelBuilder.java:154) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder。 < init>(StAXSOAPModelBuilder.java:140) at com.ibm.broker.axis2.SoapUtilities.createSOAPMessage(SoapUtilities.java:2224) at com.ibm.broker.axis2.SoapUtilities.createSOAPMessage(SoapUtilities.java:1924)加入 「soap11」 以指示該請求是SOAP請求後 在com.ibm.broker.axis2.Axis2Invoker.processInboundRequest(Axis2Invoker.java:3521) ... 3更