我尝试使用Postman测试Web服务,响应还可以,但是XML响应中的元素是一个字节数组,需要将其保存到csv文件中。
我尝试使用选项“保存并下载”,但是它将XML响应保存在XML文件中,而不是将字节数组保存到文件中。
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:runResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://editor.gtdw.xxx.com">
<runReturn xsi:type="soapenc:base64Binary" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<-- byte[] is here!-->
</runReturn>
</ns1:runResponse>
</soapenv:Body>
</soapenv:Envelope>
这可能吗?
我可以使用Java中的程序保存文件,并且工作正常。