最新消息:本站持续更新中,请注意添加收藏夹。搜索关键词时,多换一个同义词。比如要搜索界面,可以尝试页面,画面,PER档等词汇。善于搜索,将大大提高你的查找效率。

鼎捷TIPTOP ERP用postman进行接口测试的配置

TIPTOP GP教程 bron1984 622浏览

平时测试TIPTOP ERP 的Webserver 接口,都是用 SoapUi 来操作的。具体可以参考《TIPTOP 接口调试 WebService Debug背景作业的方法

但大伙用得最多的还是 postman 工具。所以做了一个postman的测试接口方法:

1、基本操作,先新建接口

把wsdl链接帖上去,再方法改成 post

进入 Headers 页签,填入如下资料

企业微信截图_17299243066821

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>

&lt;Request>
    &lt;Access>
        &lt;Authentication user="tiptop" password=""/>
        &lt;Connection application="OA" source="192.168.0.4"/>
        &lt;Organization name="LTCC"/>
        &lt;Locale language="zh_cn"/>
    &lt;/Access>
    &lt;RequestContent>
        &lt;Document>
            &lt;RecordSet id="1">
                &lt;Master name="main_file">
                    &lt;Record>
                        &lt;Field name="jplant" value="LTCC"/>
                        &lt;Field name="jtype" value="1"/>
                        &lt;Field name="jno" value="AAAA-24090024"/>
                        &lt;Field name="jdate" value="2018-09-18"/>
                    &lt;/Record>
                &lt;/Master>
                &lt;Detail name="detail_file">
                    &lt;Record>
                        &lt;Field name="kno" value="AAAA-24090024"/>
                        &lt;Field name="ksn" value="1"/>
                    &lt;/Record>
                    &lt;Record>
                        &lt;Field name="kno" value="AAAA-24090024"/>
                        &lt;Field name="ksn" value="2"/>
                    &lt;/Record>
                &lt;/Detail>
            &lt;/RecordSet>
        &lt;/Document>
    &lt;/RequestContent>
&lt;/Request>

</tip:request>
      </tip:api01Request>
   </soapenv:Body>
</soapenv:Envelope>

如果你要问为啥 格式怪怪的,这么多“&lt;”, 可以参考一下《TIPTOP 接口调试 WebService Debug背景作业的方法

 

 

转载请注明:赫非域 » 鼎捷TIPTOP ERP用postman进行接口测试的配置