apm69 发表于 2024-5-20 14:13:19

拓展名为wsdl的webService接口如果通过活字格9.0访问

接口文件详见附件,是金蝶EAS系统提供的数据接口登录端口,还提供了两个数据访问接口文件,也是这种格式的,这里就不上传了。
该接口可以在公网访问到,业主提供了访问的用户名和密码。
如何在活字格里通过接口文档访问webService接口?
能否根据附件的接口文档提供一个简单的样例?

豪~豪 发表于 2024-5-20 14:13:20

Joe.xu 发表于 2024-5-21 11:21
大佬,您这个该怎么去使用呢,方便详细说一下吗

这里是请求参数


然后进行指定协议拼接成提交参数

请求地址:http://47.104.200.235:8080/ormrpc/services/EASLogin
POST提交数据如下,参数填写对应的信息
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:ns="http://login.webservice.bos.kingdee.com">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:login>
         <ns:userName>haoge</ns:userName>
         <ns:password>123456</ns:password>
         <ns:slnName>name</ns:slnName>
         <ns:dcName>da</ns:dcName>
         <ns:language>cn</ns:language>
         <ns:dbType>1</ns:dbType>
      </ns:login>
   </soapenv:Body>
</soapenv:Envelope>
然后添加SOAPAction请求头


Joe.xu 发表于 2024-5-20 16:21:54

对接webservice接口可以看一下这个教程,自定义webapi来对接
帮你打开活字格更神奇的功能:九十二,活字格对接Web Service接口
https://gcdn.grapecity.com.cn/showtopic-90316-1-1.html
(出处: 葡萄城开发者社区)

这两个对接实例也供您参考
分享一下华视身份证读卡器通过Webservice方式读卡的案例
https://gcdn.grapecity.com.cn/showtopic-86481-1-1.html
(出处: 葡萄城开发者社区)
低代码应用【业务数据】->生成【金蝶记账凭证接口方案】
https://gcdn.grapecity.com.cn/showtopic-171323-1-1.html
(出处: 葡萄城开发者社区)


豪~豪 发表于 2024-5-21 09:10:09

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:ns="http://login.webservice.bos.kingdee.com">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:login>
         <ns:userName>haoge</ns:userName>
         <ns:password>123456</ns:password>
         <ns:slnName>name</ns:slnName>
         <ns:dcName>da</ns:dcName>
         <ns:language>cn</ns:language>
         <ns:dbType>1</ns:dbType>
      </ns:login>
   </soapenv:Body>
</soapenv:Envelope>

请求体

协议头添加SOAPAction: ""

Joe.xu 发表于 2024-5-21 11:21:13

豪~豪 发表于 2024-5-21 09:10


大佬,您这个该怎么去使用呢,方便详细说一下吗

Joe.xu 发表于 2024-5-21 14:24:41

豪~豪 发表于 2024-5-21 11:30
这里是请求参数




{:5_117:}
页: [1]
查看完整版本: 拓展名为wsdl的webService接口如果通过活字格9.0访问