首页 > 其他 > 详细

测试短信发送

时间:2020-05-18 20:06:48      阅读:51      评论:0      收藏:0      [点我收藏+]

 

一、测试普通短信发送


 

<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://包名反写">
    <soapenv:Header/>
    <soapenv:Body>
        <ser:sendTemplateSms soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
            <sysbusId xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">JSWSC</sysbusId>
            <templateId xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">js_kcbztx</templateId>
            <phoneNos xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">17851661216</phoneNos>
            <contentParas xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">小明#|#蜻蜓队长杂货店#|#大袋卫龙</contentParas>
            <splitString xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">#|#</splitString>
        </ser:sendTemplateSms>
    </soapenv:Body>
</soapenv:Envelope>

参数:sysbusId:系统ID,templateId:模板ID,phoneNos:电话号码;contentParas 参数内容;splitString 分隔符。

eg:是於给我的

我测试

资金监管核对短信

1:限制 5分钟限发一条

技术分享图片

 

 

 

 2:请求

 

 

<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://包名反写">
    <soapenv:Header/>
    <soapenv:Body>
        <ser:sendTemplateSms soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
            <sysbusId xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">ZJJG</sysbusId>
            <templateId xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">js_zjjg</templateId>
            <phoneNos xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">13952035215</phoneNos>
            <contentParas xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">王慧测试业务#|#相关人员</contentParas>
            <splitString xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">#|#</splitString>
        </ser:sendTemplateSms>
    </soapenv:Body>
</soapenv:Envelope>

完成测试。

发现问题

资金监管业务写的是每小时限制发送5条,但是似乎是按照每天限制发送5条来的,当发送到底六条时 就发送不出去了。

修改为6条。

 

二、测试sap短信发送

技术分享图片

 

测试短信发送

原文:https://www.cnblogs.com/tldxh/p/12912263.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!