我正在尝试将 WS SOAP-XML 响应转换为 JSON 格式,但出现以下错误:
error: ballerina.lang.errors:Error, message: failed to get xml payload: failed to parse xml: com.ctc.wstx.exc.WstxParsingException: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs.
我认为这是因为响应开始于:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap....">
有没有办法删除第一行?然后我可以使用 XmlToJSON。
谢谢