08.03.01.tiptop webserver接口篇(增加接口案例测试 单表数据)

本页目录:

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

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

CreateCustomerData接口案例代码:/u1/topprod/tiptop/aws/4gl/aws_create_customer_data.4gl

制作xml

  • 注意:vscode可以下载插件:XML 对代码进行格式化
  • 再添加转译符 或者 <替换< >替换>
<![CDATA[
<Request>
    <Access>
        <Authentication user="tiptop" password="xxxx" />
        <Connection application="tiptop" source="xxx.xxx.xxx.xxx" />
        <Organization name="BLPROD" />
        <Locale language="zh_tw" />
    </Access>
    <RequestContent>
        <Parameter />
        <Document>
            <RecordSet id="1">
                <Master name="occ_file">
                    <Record>
                        <Field name="occ01" value="test01" />
                        <Field name="occ02" value="测试接口" />
                        <Field name="occ12" value="2025/03/11" />
                        <Field name="occ246" value="BLPROD" />
                        <Field name="occ71" value="2" />
                        <Field name="occ73" value="N" />
                    </Record>
                </Master>
            </RecordSet>
        </Document>
    </RequestContent>
</Request>
]]>

08.03.01.tiptop webserver接口篇(增加接口案例测试 单表数据)_第1张图片

配置

  • SOAPUI
  • url:http://xxx.xxx.xxx.xxx/web/ws/r/aws_ttsrv2?WSDL
  • 请求xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tip="http://www.dsc.com.tw/tiptop/TIPTOPServiceGateWay">
   <soapenv:Header/>
   <soapenv:Body>
      <tip:CreateCustomerDataRequest>
         <tip:request><![CDATA[
<Request>
    <Access>
        <Authentication user="tiptop" password="xxxx" />
        <Connection application="tiptop" source="xxx.xxx.xxx.xxx" />
        <Organization name="BLPROD" />
        <Locale language="zh_tw" />
    </Access>
    <RequestContent>
        <Parameter />
        <Document>
            <RecordSet id="1">
                <Master name="occ_file">
                    <Record>
                        <Field name="occ01" value="test01" />
                        <Field name="occ02" value="测试接口" />
                        <Field name="occ246" value="BLPROD" />
                        <Field name="occ71" value="2" />
                        <Field name="occ73" value="N" />
                    </Record>
                </Master>
            </RecordSet>
        </Document>
    </RequestContent>
</Request>
]]></tip:request>
      </tip:CreateCustomerDataRequest>
   </soapenv:Body>
</soapenv:Envelope>

测试

  • 查询数据多一笔数据
SELECT DISTINCT *
FROM BLPROD.occ_file
WHERE occ01='test01'

你可能感兴趣的:(鼎捷tiptop,5.3,开发语言)