我有一个使用SOAP Web服务的ColdFusion应用程序。返回以下SOAP响应时,没有错误:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header />
<env:Body>
<example-response xmlns="http://example.com/example">
<example-asset lang="EN" />
</example-response>
</env:Body>
</env:Envelope>
但是当attrribute lang
更改为DE
时,如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header />
<env:Body>
<example-response xmlns="http://example.com/example">
<example-asset lang="DE" />
</example-response>
</env:Body>
</env:Envelope>
我收到以下错误:
Cannot perform web service invocation example.
The fault returned when invoking the web service operation is: AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Invalid element in de.synyx.icsms.product_informations.ProductInformation - language-asset
faultActor:
faultNode:
faultDetail: {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
Invalid element in de.synyx.icsms.product_informations.ProductInformation - language-asset at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258) at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035) at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165) at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141) at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236) at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:384) at
org.apache.axis.client.Call.invoke(Call.java:2448) at org.apache.axis.cli... ''