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。
感謝