在NextTag中收到非全面空间字符或CDATA事件

发布于 2025-01-27 22:15:57 字数 1003 浏览 6 评论 0原文

我在Mule4中使用Web服务消费者(1.6.9)并触发外部肥皂服务,外部服务正在返回SOAP故障,以下是我所得到的肥皂故障,

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
    <soapenv:Body>
        <soapenv:Fault>
            <faultcode>Internal Server Error</faultcode>
            <faultstring>Unexpected close tag 
            </urn:UniqueName>; expected
        </urn:UniqueNam>
 at [row,col {unknown-source}]: [40,54]
    </faultstring>
    <Detail>Invalid incoming request /Buyer/soap/C133/X-T/testPull?null</Detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

但Mule中的Web Service Consecter在Mule中返回以下错误:

Caused by: com.ctc.wstx.exc.WstxParsingException: Received non-all-whitespace CHARACTERS or CDATA event in nextTag()

请让我知道问题是什么,似乎Web服务消费者在解析上述肥皂故障时会抛出上述错误。

I am using web service consumer(1.6.9) in Mule4 and triggering the external soap service, the external service is returning SOAP FAULT and below is the SOAP fault which I am getting as below

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
    <soapenv:Body>
        <soapenv:Fault>
            <faultcode>Internal Server Error</faultcode>
            <faultstring>Unexpected close tag 
            </urn:UniqueName>; expected
        </urn:UniqueNam>
 at [row,col {unknown-source}]: [40,54]
    </faultstring>
    <Detail>Invalid incoming request /Buyer/soap/C133/X-T/testPull?null</Detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

but Web service consumer in mule is returning the below error:

Caused by: com.ctc.wstx.exc.WstxParsingException: Received non-all-whitespace CHARACTERS or CDATA event in nextTag()

Please let me know what is the issue, it seems web service consumer is throwing the above error while parsing the above soap fault.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

将军与妓 2025-02-03 22:15:57

似乎抱怨肥皂故障响应是有效的XML,因为这一行:

        </urn:UniqueNam>
   at [row,col {unknown-source}]: [40,54]...
</faultstring>

请注意&lt;/urn之间的文本:iniquenam&gt; and &lt;/fatferstring&gt; 。这在XML中无效。应该有一个XML标签或没有纯文本。

It seems to be complaining that the SOAP fault response is not valid XML because of this line:

        </urn:UniqueNam>
   at [row,col {unknown-source}]: [40,54]...
</faultstring>

Note how the text is between </urn:UniqueNam> and </faultstring>. That's not valid in XML. There should be an XML tag or nothing there instead of plain text.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文