08.02.02.tiptop webserver接口篇(查询接口案例测试 多表数据)

本页目录:

  • 1、制作xml
  • 2、配置
  • 2、测试

  • 注册服务接口案例:/u1/topprod/tiptop/aws/4gl/aws_ttsrv2_service.4gl

GetBOMData接口案例代码:/u1/topprod/tiptop/aws/4gl/aws_get_bom_data.4gl

制作xml

  • 注意:vscode可以下载插件:XML 对代码进行格式化 再添加转译符<![CDATA[]]>
<![CDATA[
<Request>
    <Access>
        <Authentication user="tiptop" password="xxxx" />
        <Connection application="tiptop" source="xxx.xxx.xxx.xxx" />
        <Organization name="xxxxxx" />
        <Locale language="zh_tw" />
    </Access>
    <RequestContent>
        <Parameter>
            <Record>
                <Field name="condition" value="bma01 = 'FFB-WS8762NNN-05'" />
            </Record>
        </Parameter>
        <Document />
    </RequestContent>
</Request>
]]>

在这里插入图片描述

配置

  • SOAPUI
  • url:http://xxx.xxx.xxx.xxx/web/ws/r/aws_ttsrv2?WSDL
  • 请求xml

说明:<tip:request>?</tip:request>中间的?号替换为传入的xml值,将xml黏贴到指定位置时需加转译符<![CDATA[]]>或者将<符号换成 &lt; (推荐用第二种替换符号方法),完整如下:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tip="http://www.dsc.com.tw/tiptop/TIPTOPServiceGateWay">
   <soapenv:Header/>
   <soapenv:Body>
      <tip:GetBOMDataRequest>
         <tip:request><![CDATA[
<Request>
    <Access>
        <Authentication user="tiptop" password="xxxx" />
        <Connection application="tiptop" source="xxx.xxx.xxx.xxx" />
        <Organization name="xxxx" />
        <Locale language="zh_tw" />
    </Access>
    <RequestContent>
        <Parameter>
            <Record>
                <Field name="condition" value="bma01 = 'FFB-WS8762NNN-05'" />
            </Record>
        </Parameter>
        <Document />
    </RequestContent>
</Request>
]]></tip:request>
      </tip:GetBOMDataRequest>
   </soapenv:Body>
</soapenv:Envelope>

测试

  • 返回的值只有bma_file和bmb_file 两张表数据

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

DKLi1717

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值