【发布时间】:2017-10-13 14:42:53
【问题描述】:
我正在尝试将 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。
谢谢
【问题讨论】:
标签: ballerina