<?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条。
原文:https://www.cnblogs.com/tldxh/p/12912263.html