我使用spring webservice模板作为soap请求来攻击大型机服务。我能够建立http连接并点击服务,但返回部分输出:
实际回应应为
<headerOutputs>
<RTNCODE>0</RTNCODE>
</headerOutputs>
<dataOutputs>
<row>BI</row>
<row>FSG</row>
</dataOutputs>
但代码只返回headeroutputs 0
我在soapUI工具中得到了适当的回应。
日志:
-- 2017-01-03 11:30:39.821 -- Sent request [SaajSoapMessage {urn:cws}request]
-- 2017-01-03 11:30:39.990 -- Received response [SaajSoapMessage headerOutputs] for request [SaajSoapMessage {urn:cws}request]
-- 2017-01-03 11:30:39.990 -- Soap response from sendXMLAndRecieveStream :<?xml version="1.0" encoding="UTF-8"?><headerOutputs><RTNCODE>0</RTNCODE></headerOutputs>