从postman中以xml格式呈现的响应中提取数据

问题描述 投票:0回答:1

我想从XML形式的响应中提取数据。 enter image description here到目前为止,我可以使用返回标签检索/显示存储的内容

var responseJson = xml2Json(responseBody);
console.log(responseJson);

postman.setGlobalVariable("XMlResponse", responseJson['SOAP-ENV:Envelope'] 
['SOAP-ENV:Body']['NS1:checkIDDocumentResponse']['return']['_']); 

但我想从响应中检索Gender并将其保存在全局变量级别。需要一些指导我如何实现它。

xml api postman
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.