用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包格式不正确,还是参数不对?

解决方案 »

  1.   

    to r_swordsman 你难道想混分?
    我的分只给帮我解决问题的人!
    对敷衍提问者的人本人一向持鄙视态度。
    本问题后来是自己解决的,你说的哪些只是从表面上推测了一下,谁都可以说出来,根本于解决问题无益。所以拿不到分。
      

  2.   

    大家可以进我的blog看到正确的彩信soap包格式http://www.cnblogs.com/tuyile006/archive/2008/01/30/1059064.html
      

  3.   

    我也做类似的什么 使用java做的。现在遇到了一个解析彩信文件的问题 。 
    可以建议楼主去Nokia的官网去看看。会有意外的收获。