本页目录:
- 1、制作xml
- 2、配置
- 2、测试
- 注册服务接口案例:/u1/topprod/tiptop/aws/4gl/aws_ttsrv2_service.4gl
GetItemData接口案例代码:/u1/topprod/tiptop/aws/4gl/aws_get_item_data.4gl
制作xml
- 注意:vscode可以下载插件:XML 对代码进行格式化 再添加转译符<![CDATA[]]>
<![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="ima01 = 'FFB-WS8762NNN-05'" />
</Record>
</Parameter>
<Document />
</RequestContent>
</Request>
]]>
- user:erp账号
- password:erp的密码
- application:呼叫端系統代號
- source:呼叫端來源 IP or Host
- Organization: 填写ERP运营中心代号
- language:zh_tw(繁體) / zh_cn(簡體) / en_us(英文)
- Field的value可模糊查询 value=“ima01 LIKE ‘FFB-WS8762NNN%’”
配置
- SOAPUI
- url:http://xxx.xxx.xxx.xxx/web/ws/r/aws_ttsrv2?WSDL
- 请求xml
说明:<tip:request>?</tip:request>中间的?号替换为传入的xml值,将xml黏贴到指定位置时需加转译符<![CDATA[]]>或者将<符号换成 < (推荐用第二种替换符号方法),完整如下:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tip="http://www.dsc.com.tw/tiptop/TIPTOPServiceGateWay">
<soapenv:Header/>
<soapenv:Body>
<tip:GetItemDataRequest>
<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="ima01 = 'FFB-WS8762NNN-05'" />
</Record>
</Parameter>
<Document />
</RequestContent>
</Request>
]]></tip:request>
</tip:GetItemDataRequest>
</soapenv:Body>
</soapenv:Envelope>
测试
- 返回的值只有ima_file单表数据