is this possible to send cross site request by AJAX with a SOAP request and get XML response? and i want to convert my xml response to json format is there any framework (like mustache) to do this easily
AJAX通过SOAP请求发送跨站点请求并获得XML响应是否可能?我想把我的xml响应转换成json格式,是否有任何框架(比如mustache)可以轻松地做到这一点
1 个解决方案
#1
1
You can make use of xml2js node library. It converts xml to json and vice versa. But it doesn't uses templates. https://www.npmjs.com/package/xml2js
您可以使用xml2js节点库。它将xml转换为json,反之亦然。但它不使用模板。https://www.npmjs.com/package/xml2js
#1
1
You can make use of xml2js node library. It converts xml to json and vice versa. But it doesn't uses templates. https://www.npmjs.com/package/xml2js
您可以使用xml2js节点库。它将xml转换为json,反之亦然。但它不使用模板。https://www.npmjs.com/package/xml2js