当lang =" DE"时,无法执行Web服务调用。由SOAP webservice返回

时间:2014-06-10 13:51:27

标签: web-services soap coldfusion axis coldfusion-8

我有一个使用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... ''

0 个答案:

没有答案