我爱Aspx >> Asp.Net >> RVP:存在和即时消息传送协议 (3)NOTIFY 方法使用新的 RVP XML 元素:message、propnotification、notification-from、notification-to、contact、description、msgbody 和 mime-data。
示例此示例说明 PRESENTITY http://im.example.com/instmsg/aliases/deriks 如何将即时消息发送到 INSTANT INBOX http://im.acmewidgets.com/instmsg/aliases/maxb。
>>请求 NOTIFY /instmsg/aliases/maxb HTTP/1.1 Host: im.acmewidgets.com RVP-Notifications-Version: 0.2 RVP-Ack-Type: DeepOr RVP-Hop-Count: 1 RVP-From-Principal: http://im.example.com/instmsg/aliases/deriks Content-Type: text/xml Content-length: XXXX <?xml version="1.0"?> <D:notification xmlns:D="DAV:" xmlns:Z="http://schemas.microsoft.com/rvp/"> <Z:message> <Z:notification-from> <Z:contact> <D:href> http://im.example.com/instmsg/aliases/deriks </Z:href> <Z:description> Derik Stenerson </Z:description> </Z:contact> </Z:notification-from> <Z:notification-to> <Z:contact> <D:href> http://im.acmewidgets.com/instmsg/aliases/maxb</D:href> <Z:description> max </Z:description> </Z:contact> </Z:notification-to> <Z:msgbody> <Z:mime-data> <![CDATA[MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-MMS-IM-Format: FN=Microsoft%20Sans%20Serif; EF=; CO=0; CS=0; PF=22 Session-Id: {79FC61B5-1234-1234- 8A10-941F33CA4C90} Let's have lunch ]]> </Z:mime-data> </Z:msgbody> </Z:message> </Z:notification> >>响应 HTTP/1.1 200 Successful RVP-Notifications-Version: 0.2
RVP:存在和即时消息传送协议 (2..[05-05]
RVP:存在和即时消息传送协议 (1..[05-05]
从程序员升级到工程师[05-05]
DCOM概述(三)[05-05]
DCOM概述(二)[05-05]
DCOM概述(一)[05-05]
WIN32 环境时钟编程要诀[05-05]
JPEG 简易文档 V2.11[05-05]
IMA-ADPCM 算法[05-05]
A* 算法求解最短路径[05-05]