用C#重写移动彩信mm7协议api
发送数据包日志如下:[2008-01-27 20:17:23]
发送彩信:
POST /mm7 HTTP/1.1
Host:211.139.144.202:7006
Content-Type:multipart/related; boundary="--NextPart_0_2817_24856";type="text/xml";start="</tnn-200102/mm7-vasp>"
Content-Transfer-Encoding:8bit
Authorization:Basic YWRtaW46MTIzNDU2
SOAPAction:"SubmitReq"
MM7APIVersion:V1.5.3_20040621
Connection: Keep-Alive
Content-Length:1420
Mime-Version:1.0this is a multi-part message in MIME format
----NextPart_0_2817_24856
Content-Type:text/xml;charset="GB2312"
Content-Transfer-Encoding:8bit
Content-ID:</tnn-200102/mm7-vasp><?xml version="1.0" encoding="GB2312"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><mm7:TransactionID xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-0" env:mustUnderstand="1">1000000</mm7:TransactionID></env:Header><env:Body><SubmitReq xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-0"><MM7Version>6.3.0</MM7Version><SenderIdentification><VASPID>888888</VASPID><VASID>106570266</VASID><SenderAddress>106570266</SenderAddress></SenderIdentification><Recipients><To><Number>13510985723</Number><Number>13902442802</Number><Number>13823510510</Number></To></Recipients><ServiceCode>6</ServiceCode><DeliveryReport>True</DeliveryReport><Subject>彩信测试</Subject><ChargedParty>Neither</ChargedParty><ChargedPartyID>13510985723</ChargedPartyID></SubmitReq></env:Body></env:Envelope>
----NextPart_0_2817_24856
Content-Type:multipart/mixed;boundary="SubPart_7452684322002_77645"
Content-ID:mmtest
Content-Transfer-Encoding:8bit--SubPart_7452684322002_77645
Content-Type:text/plain;charset=GB2312
Content-Transfer-Encoding:8bit
Content-ID:text1I am a MMS!--SubPart_7452684322002_77645--
----NextPart_0_2817_24856--
[2008-01-27 20:17:23]
接收到完整回复包为:
HTTP/1.1 200 OK
Content-Type: text/xml; charset="utf-8"
Content-Length: 628
SOAPAction: ""<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Header><mm7:TransactionID xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-0" soap-env:mustUnderstand="1">1000000</mm7:TransactionID></soap-env:Header><soap-env:Body><SubmitRsp xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-0"><MM7Version>1.5.0</MM7Version><Status><StatusCode>3002</StatusCode><StatusText>娑堟伅琚嫆缁?/StatusText></Status><MessageID>12014363354097366</MessageID></SubmitRsp></soap-env:Body></soap-env:Envelope>[2008-01-27 20:17:23]
解析返回包Soap实体为:
<?xml version="1.0" encoding="GB2312"?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Header><mm7:TransactionID xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-0" soap-env:mustUnderstand="1">1000000</mm7:TransactionID></soap-env:Header><soap-env:Body><SubmitRsp xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-0"><MM7Version>1.5.0</MM7Version><Status><StatusCode>3002</StatusCode><StatusText>消息被拒绝</StatusText></Status><MessageID>12014363354097366</MessageID></SubmitRsp></soap-env:Body></soap-env:Envelope>返回的数据包是正确的soap包
3002代表“消息被拒绝”请教做过彩信开发的高人这个代表什么意思?是不是我的Soap包格式不正确,还是参数不对?
发送数据包日志如下:[2008-01-27 20:17:23]
发送彩信:
POST /mm7 HTTP/1.1
Host:211.139.144.202:7006
Content-Type:multipart/related; boundary="--NextPart_0_2817_24856";type="text/xml";start="</tnn-200102/mm7-vasp>"
Content-Transfer-Encoding:8bit
Authorization:Basic YWRtaW46MTIzNDU2
SOAPAction:"SubmitReq"
MM7APIVersion:V1.5.3_20040621
Connection: Keep-Alive
Content-Length:1420
Mime-Version:1.0this is a multi-part message in MIME format
----NextPart_0_2817_24856
Content-Type:text/xml;charset="GB2312"
Content-Transfer-Encoding:8bit
Content-ID:</tnn-200102/mm7-vasp><?xml version="1.0" encoding="GB2312"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header><mm7:TransactionID xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-0" env:mustUnderstand="1">1000000</mm7:TransactionID></env:Header><env:Body><SubmitReq xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-0"><MM7Version>6.3.0</MM7Version><SenderIdentification><VASPID>888888</VASPID><VASID>106570266</VASID><SenderAddress>106570266</SenderAddress></SenderIdentification><Recipients><To><Number>13510985723</Number><Number>13902442802</Number><Number>13823510510</Number></To></Recipients><ServiceCode>6</ServiceCode><DeliveryReport>True</DeliveryReport><Subject>彩信测试</Subject><ChargedParty>Neither</ChargedParty><ChargedPartyID>13510985723</ChargedPartyID></SubmitReq></env:Body></env:Envelope>
----NextPart_0_2817_24856
Content-Type:multipart/mixed;boundary="SubPart_7452684322002_77645"
Content-ID:mmtest
Content-Transfer-Encoding:8bit--SubPart_7452684322002_77645
Content-Type:text/plain;charset=GB2312
Content-Transfer-Encoding:8bit
Content-ID:text1I am a MMS!--SubPart_7452684322002_77645--
----NextPart_0_2817_24856--
[2008-01-27 20:17:23]
接收到完整回复包为:
HTTP/1.1 200 OK
Content-Type: text/xml; charset="utf-8"
Content-Length: 628
SOAPAction: ""<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Header><mm7:TransactionID xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-0" soap-env:mustUnderstand="1">1000000</mm7:TransactionID></soap-env:Header><soap-env:Body><SubmitRsp xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-0"><MM7Version>1.5.0</MM7Version><Status><StatusCode>3002</StatusCode><StatusText>娑堟伅琚嫆缁?/StatusText></Status><MessageID>12014363354097366</MessageID></SubmitRsp></soap-env:Body></soap-env:Envelope>[2008-01-27 20:17:23]
解析返回包Soap实体为:
<?xml version="1.0" encoding="GB2312"?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Header><mm7:TransactionID xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-0" soap-env:mustUnderstand="1">1000000</mm7:TransactionID></soap-env:Header><soap-env:Body><SubmitRsp xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-0"><MM7Version>1.5.0</MM7Version><Status><StatusCode>3002</StatusCode><StatusText>消息被拒绝</StatusText></Status><MessageID>12014363354097366</MessageID></SubmitRsp></soap-env:Body></soap-env:Envelope>返回的数据包是正确的soap包
3002代表“消息被拒绝”请教做过彩信开发的高人这个代表什么意思?是不是我的Soap包格式不正确,还是参数不对?
解决方案 »
- c#程序打开autocad
- 关于c#调用dll后内存释放的问题
- 金蝶K3是用C#开发的吗
- 控制台下streamwriter的问题
- 在CheckedListBox中,怎样判新添加的项不能与CheckedListBox中已有项相同? 非常感谢大家帮助一下!!!
- DataGridView的数字列
- C# API 如何得到 系统当前活动文件夹名称 并在根据 名称 在这文件夹标题栏上增加1个文字按钮呢?
- C#如何往Excel文件中写入数据
- 如何让DataGridView可编辑,编辑完成后,点击“确定”更新数据库?
- 求.net 微信开发
- 不能删除SQL Server数据库文件?
- 我买个域名 要把网站架上去 需要做哪些工作 ?
我的分只给帮我解决问题的人!
对敷衍提问者的人本人一向持鄙视态度。
本问题后来是自己解决的,你说的哪些只是从表面上推测了一下,谁都可以说出来,根本于解决问题无益。所以拿不到分。
可以建议楼主去Nokia的官网去看看。会有意外的收获。