1
我想转换成JSON格式的WS SOAP,XML响应,但我得到了以下错误:错误将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。
感谢