以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 想接入顺丰下单接口,看了下文档,不知道狐表怎么接! (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=149358) |
-- 作者:有点蓝 -- 发布时间:2020/4/29 17:37:00 -- 试试 Dim hc As New HttpClient("https://bsp-oisp.sf-express.com/bsp-oisp/sfexpressService") hc.ContentType = "application/x-www-form-urlencoded" Dim xml As String = "<Request service=""OrderService"" lang=""zh-CN""><Head>此处替换为您在丰桥平台获取的顾客编码</Head>......自己设置好报文内容 " Dim checkword = "123" \'此处替换为您在丰桥平台获取的校验码verifyCode Dim encode As String = Convert.ToBase64String(New System.Security.Cryptography.MD5CryptoServiceProvider().ComputeHash(Encoding.Default.GetBytes(xml & checkword))) \'加密报文 hc.FormData.Add("xml",xml ) hc.FormData.Add("verifyCode",encode ) Dim ret As String = hc.GetData() msgbox(ret) |
-- 作者:有点蓝 -- 发布时间:2020/4/30 10:45:00 -- 找官方要.net 4.0实例和源码。网站上是.net core的用法,可能加密方法不一样 |