平时测试TIPTOP ERP 的Webserver 接口,都是用 SoapUi 来操作的。具体可以参考《TIPTOP 接口调试 WebService Debug背景作业的方法》
但大伙用得最多的还是 postman 工具。所以做了一个postman的测试接口方法:
1、基本操作,先新建接口
把wsdl链接帖上去,再方法改成 post
进入 Headers 页签,填入如下资料
Content-Type:
【text/xml;charset=UTF-8】
SOAPAction:【http://www.dsc.com.tw/tiptop/TIPTOPServiceGateWay/TIPTOPServiceGateWayPortType/api01Request(具体的方法名称)】
进入 body 页签,按下图设置
工具测试报文:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tip="http://www.dsc.com.tw/tiptop/TIPTOPServiceGateWay">
<soapenv:Header/>
<soapenv:Body>
<tip:api01Request>
<tip:request>
<Request>
<Access>
<Authentication user="tiptop" password=""/>
<Connection application="OA" source="192.168.0.4"/>
<Organization name="LTCC"/>
<Locale language="zh_cn"/>
</Access>
<RequestContent>
<Document>
<RecordSet id="1">
<Master name="main_file">
<Record>
<Field name="jplant" value="LTCC"/>
<Field name="jtype" value="1"/>
<Field name="jno" value="AAAA-24090024"/>
<Field name="jdate" value="2018-09-18"/>
</Record>
</Master>
<Detail name="detail_file">
<Record>
<Field name="kno" value="AAAA-24090024"/>
<Field name="ksn" value="1"/>
</Record>
<Record>
<Field name="kno" value="AAAA-24090024"/>
<Field name="ksn" value="2"/>
</Record>
</Detail>
</RecordSet>
</Document>
</RequestContent>
</Request>
</tip:request>
</tip:api01Request>
</soapenv:Body>
</soapenv:Envelope>
如果你要问为啥 格式怪怪的,这么多“<
”, 可以参考一下《TIPTOP 接口调试 WebService Debug背景作业的方法》
转载请注明:赫非域 » 鼎捷TIPTOP ERP用postman进行接口测试的配置