51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 4386|回复: 0
打印 上一主题 下一主题

电信SP短信业务接入测试-接口数据包格式

[复制链接]
  • TA的每日心情
    无聊
    2024-3-7 09:16
  • 签到天数: 43 天

    连续签到: 2 天

    [LV.5]测试团长

    跳转到指定楼层
    1#
    发表于 2018-3-27 13:33:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    最近在做电信SP短信业务接入测试,目前还没完全完工,还有点问题需要找电信网关那边协调确认下,
    今天闲着把这一阵的接入稍微写下,电信与移动的CMPP和联通的SGIP类似,
    不过这三种协议在程序接口逻辑上也存在一些区别:
        I:  CMPP和SMGP在接入后,SP端一直作为客户端,不管是下行短信还是用户上行或状态报告,
                 都是短信网关通过SP作为客户端的连接中返回;
         II: 而SGIP协议中SP和短信网关互为客户端和服务器端,当下行信息的时候,短信网关作为服务器端,

    而上行的消息的时候,短信网关作为客户端,以意味着SP端需要开启一个服务来监听是否有短信到达。





    目前接入电信的短信业务有两种方式:     
            1.    ISMP+短信网关方式(ISMP+SE方式)
            2.    ISMP+ISAG模式




    下行短信 SendSms 短信发送接口报文数据:

    1. 请求(SP 发起):



    1. <?xml version="1.0" encoding="UTF-8"?>

    2. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

    3. xmlns:xsd="http://www.w3.org/2001/XMLSchema"

    4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    5.     <soapenv:Header>

    6.         <ns1:RequestSOAPHeader

    7. soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"

    8. soapenv:mustUnderstand="0"

    9. xmlns:ns1="http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1">

    10.             <ns1:spId>spId</ns1:spId>

    11.             <ns1:timeStamp>082812321</ns1:timeStamp>

    12.             <ns1:spPassword>密钥</ns1:spPassword>
    13.             <ns1:productId>112000000000000004079</ns1:productId>

    14.             <ns1:OA>tel:+861333333333</ns1:OA>

    15.             <ns1:FA>tel:+8613333333333</ns1:FA>

    16.             <ns1:multicastMessaging>false</ns1:multicastMessaging>

    17.         </ns1:RequestSOAPHeader>

    18.     </soapenv:Header>

    19.     <soapenv:Body>

    20.         <sendSms

    21. xmlns="http://www.chinatelecom.com.cn/schema/ctcc/sms/send/v2_1/local">

    22.             <addresses>tel:+861333333333</addresses>

    23.             <senderName>10628888</senderName>

    24.             <charging>

    25.                 <description xmlns="">miaoshu</description>

    26.                 <currency xmlns="">0</currency>

    27.                 <amount xmlns="">1</amount>

    28.                 <code xmlns="">212100000000000002135</code>

    29.             </charging>

    30.             <message>短信内容</message>
    31.             <receiptRequest>

    32.                 <endpoint

    33. xmlns="">http://201.101.123.123:8080/isag/services/SmsNotification</endpoint>

    34.                 <interfaceName

    35. xmlns="">notifySmsDeliveryReception</interfaceName>

    36.                 <correlator xmlns="">0828123229</correlator>

    37.             </receiptRequest>

    38.                                     </sendSms>

    39.     </soapenv:Body>

    40. </soapenv:Envelope>









    41. 2 应答(ISAG 应答)

    42. <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"

    43. xmlns:xsd="http://www.w3.org/2001/XMLSchema"

    44. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    45. <env:Body>

    46. <sendSmsResponse

    47. xmlns="http://www.chinatelecom.com.cn/schema/ctcc/sms/send/v2_1/local">

    48.   <result>19120004a975e2d01121</result>

    49.   </sendSmsResponse>

    50. </env:Body>

    51. </env:Envelope>
    复制代码


    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-4-26 00:34 , Processed in 0.064935 second(s), 22 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表