请大虾们指点:关于dotNet平台,发送HTTP请求(C/S模式)

 请大虾们指点:关于dotNet平台,发送HTTP请求(C/S模式),如何带一个SOAP格式的内容体?dotNet有相关的类或命名空间吗?

例如:如下请求消息如何生成呢?

POST / HTTP/1.1
Content-Type: multipart/related;  type="text/xml"; start="</tnn-200102/mm7-submit>"; 
 boundary="----=_Part_5_17890856.1163054980359"
Content-Length: 1370
SOAPAction: ""
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.5.0_09
Host: 127.0.0.1:2200
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

------=_Part_5_17890856.1163054980359
Content-Type: text/xml
Content-Id: </tnn-200102/mm7-submit>

<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Header><TransactionID xmlns="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-0" soap-env:mustUnderstand="1">973172</TransactionID></soap-env:Header><soap-env:Body><mm7:DeliverReq xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-0"><MM7Version>5.2.0</MM7Version><SenderIdentification><SenderAddress>13951900000</SenderAddress></SenderIdentification><Sender>13951900000</Sender><Recipients><To><Number>13900000001</Number></To><Cc><Number>13900000003</Number></Cc><Bcc><Number>13900000002</Number></Bcc></Recipients><LinkedID>9999</LinkedID><TimeStamp>2006-11-09T14:35:05+08:00</TimeStamp><ReplyCharging>False</ReplyCharging><Priority>Low</Priority><Subject>This is a test</Subject><MMSRelayServerID>910000</MMSRelayServerID><ReplyChargingID>333</ReplyChargingID><Content href="cid:defaultID"/></mm7:DeliverReq></soap-env:Body></soap-env:Envelope>
------=_Part_5_17890856.1163054980359
Content-Type: multipart/mixed; 
 boundary="----=_Part_4_15485575.1163054980359"
Content-Id: defaultID

------=_Part_4_15485575.1163054980359--

------=_Part_5_17890856.1163054980359--
y></soap-env:Envelope>
------=_Part_5_1789

感谢。。。!!!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值