如何在Exchange2000中使用XML

12/3/2006来源:Exchange Server人气:6854

xml是在Exchange中存储数据格式的一种,一般应用在Exchange中的以下内容:

Web Storage System 中条目的某些属性合Exchange模式定义,还经常应用在WebDAV

请求中的返回信息、请求等。用户也使用Web Storage System存储XML文档、XSL文

档、HTML文档。

例如:Exchange2000中以XML格式存储联系人的属性信息如下:

PRop xmlns:D="DAV"
xmlns:C="urn:schemas:contacts">

http://server/exchange/zhang/Contacts/zhang.eml

zhang.feng

[email protected]

super XML

Deve

为了学习XML的使用方法,现举个例子来说明,下面的例子阐明了如何针对直接的Exchange URL构造HTTP/WebDAV PROPFIND⑴方法请求的内容:

test<title></P><P align=left><script language=vbscript></P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P align=left>Dim xmlDoc</P><P align=left>Sub cmdGo_OnClick()</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P align=left>Dim strURL,strPropReg</P><P align=left>strURL = txtURL.value</P><P align=left>strPropReg="<?xml vesion='1.0'?>"</P><P align=left>strPropReg=strPropReg%26amp;"<d:propfind xmlns:d='DAV:'>"</P><P align=left>strPropReg=strPropReg%26amp;"<d:prop>"</P><P align=left>strPropReg=strPropReg%26amp;"<d:displayname>"</P><P align=left>strPropReg=strPropReg%26amp;"<d:creationdate>"</P><P align=left>strPropReg=strPropReg%26amp;"</d:prop>"</P><P align=left>strPropReg=strPropReg%26amp;"</d:propfind>"</P><P align=left>With CreateObject("microsoft.<a href="http://www.knowsky.com/tag-6.html">xmlhttp</a>")</P><P align=left> .Open "PROPFIND",strURL,True</P><P align=left> .SetRequestHeader "Context-type:","text/xml"</P><P align=left> .SetRequestHeader "Depth","1,noroot"</P><P align=left> .Send(strPropReg)</P><P align=left> responsehere.innerText = .ResponseText</P><P align=left>End With</P></BLOCKQUOTE><P align=left>End Sub</P></BLOCKQUOTE><P align=left></script></P><P align=left></head></P><P align=left><body></P><P align=left><h2>Get Contents of Folder Using XML/HTTP</h2></P><P align=left><br></P><P align=left><p>Enter a URL,something like http://server/public/documents/</p></P><P align=left><p><input type="text" width=100 name="txtURL"></p></P><P align=left><p><input type="button" value="Go" name="cmdGo"></p></P><P align=left><div id=responsehere></P><P align=left></div></P><P align=left></body></P><P align=left></html></P><P align=left>⑴在Web Storage System中访问属性,使用PROPFIND方法<BR><BR>P.S:本文作者Blog:http://www.cnblogs.com/hbzxf</P>, </font><br> <div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a><a href="#" class="bds_bdysc" data-cmd="bdysc" title="分享到百度云收藏"></a><a href="#" class="bds_tieba" data-cmd="tieba" title="分享到百度贴吧"></a></div> <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"32"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script> <br> <script type="text/javascript"> /*学院显示页 内容下*/ var cpro_id = "u2659928"; </script> <script type="text/javascript" src="http://cpro.baidustatic.com/cpro/ui/c.js"></script> <div style="font-size: 0px; height: 0px; clear: both;"></div> </div> </div> </div> <div class="zxtw mt20"> <div class="zxtwt cl"> <h3>优质网站模板</h3> </div> <div class="zxtwc"> <div class="bd"> <ul> <li> <div class="zxtwpic"><a href="http://moban.knowsky.com/mobanlist_14859.htm" title="电脑主机模板下载"><img src="http://s9.knowsky.com/moban/sjpg/2011120607402160953.jpg" border="0" alt="电脑主机模板下载"></a></div> <p><a href="http://moban.knowsky.com/mobanlist_14859.htm" title="电脑主机模板下载">电脑主机模板下载</a></p> </li> <li> <div class="zxtwpic"><a href="http://moban.knowsky.com/mobanlist_14858.htm" title="欧美打猎网站模板"><img src="http://s9.knowsky.com/moban/sjpg/2011120607402120331.jpg" border="0" alt="欧美打猎网站模板"></a></div> <p><a href="http://moban.knowsky.com/mobanlist_14858.htm" title="欧美打猎网站模板">欧美打猎网站模板</a></p> </li> <li> <div class="zxtwpic"><a href="http://moban.knowsky.com/mobanlist_14857.htm" title="棒球网站模板"><img src="http://s9.knowsky.com/moban/sjpg/2011120607402112533.jpg" border="0" alt="棒球网站模板"></a></div> <p><a href="http://moban.knowsky.com/mobanlist_14857.htm" title="棒球网站模板">棒球网站模板</a></p> </li> <li> <div class="zxtwpic"><a href="http://moban.knowsky.com/mobanlist_14856.htm" title="医院公司网站模板"><img src="http://s9.knowsky.com/moban/sjpg/2011120607402070325.jpg" border="0" alt="医院公司网站模板"></a></div> <p><a href="http://moban.knowsky.com/mobanlist_14856.htm" title="医院公司网站模板">医院公司网站模板</a></p> </li> <li> <div class="zxtwpic"><a href="http://moban.knowsky.com/mobanlist_14855.htm" title="欧美企业汽车模板"><img src="http://s9.knowsky.com/moban/sjpg/2011120607402064055.jpg" border="0" alt="欧美企业汽车模板"></a></div> <p><a href="http://moban.knowsky.com/mobanlist_14855.htm" title="欧美企业汽车模板">欧美企业汽车模板</a></p> </li> <li> <div class="zxtwpic"><a href="http://moban.knowsky.com/mobanlist_14854.htm" title="娱乐休闲音乐模板"><img src="http://s9.knowsky.com/moban/sjpg/2011120607402023444.jpg" border="0" alt="娱乐休闲音乐模板"></a></div> <p><a href="http://moban.knowsky.com/mobanlist_14854.htm" title="娱乐休闲音乐模板">娱乐休闲音乐模板</a></p> </li> <li> <div class="zxtwpic"><a href="http://moban.knowsky.com/mobanlist_14853.htm" title="欧美音乐网站模板"><img src="http://s9.knowsky.com/moban/sjpg/2011120607402014097.jpg" border="0" alt="欧美音乐网站模板"></a></div> <p><a href="http://moban.knowsky.com/mobanlist_14853.htm" title="欧美音乐网站模板">欧美音乐网站模板</a></p> </li> <li> <div class="zxtwpic"><a href="http://moban.knowsky.com/mobanlist_14852.htm" title="欧美音乐网站模板"><img src="http://s9.knowsky.com/moban/sjpg/2011120607401978185.jpg" border="0" alt="欧美音乐网站模板"></a></div> <p><a href="http://moban.knowsky.com/mobanlist_14852.htm" title="欧美音乐网站模板">欧美音乐网站模板</a></p> </li> <li> <div class="zxtwpic"><a href="http://moban.knowsky.com/mobanlist_14851.htm" title="旅游网站模板"><img src="http://s9.knowsky.com/moban/sjpg/2011120607401971825.jpg" border="0" alt="旅游网站模板"></a></div> <p><a href="http://moban.knowsky.com/mobanlist_14851.htm" title="旅游网站模板">旅游网站模板</a></p> </li> <li> <div class="zxtwpic"><a href="http://moban.knowsky.com/mobanlist_14850.htm" title="鱼模板下载"><img src="http://s9.knowsky.com/moban/sjpg/2011120607401948464.jpg" border="0" alt="鱼模板下载"></a></div> <p><a href="http://moban.knowsky.com/mobanlist_14850.htm" title="鱼模板下载">鱼模板下载</a></p> </li> <li> <div class="zxtwpic"><a href="http://moban.knowsky.com/mobanlist_14849.htm" title="模特时尚网站模板"><img src="http://s9.knowsky.com/moban/sjpg/2011120607401939057.jpg" border="0" alt="模特时尚网站模板"></a></div> <p><a href="http://moban.knowsky.com/mobanlist_14849.htm" title="模特时尚网站模板">模特时尚网站模板</a></p> </li> <li> <div class="zxtwpic"><a href="http://moban.knowsky.com/mobanlist_14848.htm" title="音乐网站模板"><img src="http://s9.knowsky.com/moban/sjpg/2011120607401893782.jpg" border="0" alt="音乐网站模板"></a></div> <p><a href="http://moban.knowsky.com/mobanlist_14848.htm" title="音乐网站模板">音乐网站模板</a></p> </li> </ul> </div> <div class="hd"> <ul><li class="on">1</li><li class="">2</li><li class="">3</li></ul> </div> <div class="slider-nav"> <a href="javascript:void(0)" class="prev"></a> <a href="javascript:void(0)" class="next"></a> </div> </div> </div> <script type="text/javascript"> jq(".zxtw").slide({ mainCell:".bd ul", effect:"leftLoop", vis:4, scroll:4,interTime:5000,autoPlay:true});</script> <div class="box mt20"> <script type="text/javascript"> /*多彩标签*/ var cpro_id = "u2662353"; </script> <script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script> </div> </div> <div class="w300 y"> <div class="ad mb20"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:inline-block;width:300px;height:300px" data-ad-client="ca-pub-6565147514244127" data-ad-slot="1127493168"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <div class="aside"> <div class="subcate border mb20"> <div class="asidetit cl"> <h3>邮件系统软件文章分类</h3> </div> <div class="subcatec"> <ul> <li><i></i><a href="http://www.knowsky.com/article.asp?typeid=120">Qmail</a></li> <li><i></i><a href="http://www.knowsky.com/article.asp?typeid=121">IMail Server</a></li> <li><i></i><a href="http://www.knowsky.com/article.asp?typeid=122">MDaemon Server</a></li> <li><i></i><a href="http://www.knowsky.com/article.asp?typeid=123">Exchange Server</a></li> <li><i></i><a href="http://www.knowsky.com/article.asp?typeid=124">Lotus Notes</a></li> <li><i></i><a href="http://www.knowsky.com/article.asp?typeid=125">其它邮件服务器软件</a></li> </ul> </div> </div> <div class="ad mb20"> <script type="text/javascript"> /*学院右则*/ var cpro_id = "u2656701"; </script> <script type="text/javascript" src="http://cpro.baidustatic.com/cpro/ui/c.js"></script> </div> <div class="catecommentrank border mb20"> <div class="asidetit cl"> <h3>最新文章推荐</h3> </div> <div class="asidelist caterankc"> <ul> <li class="cl"><em class="no1">1</em><a href="http://www.knowsky.com/342746.html" title="Exchange 2000 Server 災難復原">Exchange 2000 Server 災難復原</a></li><li class="cl"><em class="no1">2</em><a href="http://www.knowsky.com/342745.html" title="EXCHANGE公用文件夹问题集">EXCHANGE公用文件夹问题集</a></li><li class="cl"><em class="no1">3</em><a href="http://www.knowsky.com/342744.html" title="怎样实现EXCHANGA备份">怎样实现EXCHANGA备份</a></li><li class="cl"><em class="no1">4</em><a href="http://www.knowsky.com/342743.html" title="Exchange Server管理与设定(一)">Exchange Server管理与设定(一)</a></li><li class="cl"><em class="no1">5</em><a href="http://www.knowsky.com/342742.html" title="Exchange Server管理与设定(三)">Exchange Server管理与设定(三)</a></li><li class="cl"><em class="no1">6</em><a href="http://www.knowsky.com/342741.html" title="Exchange Server管理与设定(二)">Exchange Server管理与设定(二)</a></li><li class="cl"><em class="no1">7</em><a href="http://www.knowsky.com/342740.html" title="Exchange Server 公用程序(二)">Exchange Server 公用程序(二)</a></li><li class="cl"><em class="no1">8</em><a href="http://www.knowsky.com/342739.html" title="Exchange Server 公用程序(一)">Exchange Server 公用程序(一)</a></li><li class="cl"><em class="no1">9</em><a href="http://www.knowsky.com/342738.html" title="Microsoft Exchange 2000 Server的Internet配置">Microsoft Exchange 2000 Se</a></li><li class="cl"><em class="no1">10</em><a href="http://www.knowsky.com/342737.html" title="Exchange 2000 Server的进阶使用">Exchange 2000 Server的进阶使用</a></li> </ul> </div> </div> <div class="catecommentrank border mb20"> <div class="asidetit cl"> <h3>邮件系统软件推荐</h3> </div> <div class="asidelist caterankc"> <ul><li class="cl"><em class="no1">1</em><a href="http://www.knowsky.com/343318.html" title="qmail+vpopmail+mysql+qmailadmin+ezmlm+igenus构建企业邮局">qmail+vpopmail+mysql+qmail</a></li><li class="cl"><em class="no1">2</em><a href="http://www.knowsky.com/343317.html" title="通过qmailadmin来实现qmail下的域空间设置">通过qmailadmin来实现qmail下的域空间设置</a></li><li class="cl"><em class="no1">3</em><a href="http://www.knowsky.com/343316.html" title="Redhat 7.2下qmail安装(一)">Redhat 7.2下qmail安装(一)</a></li><li class="cl"><em class="no1">4</em><a href="http://www.knowsky.com/343315.html" title="Redhat 7.2下qmail安装(二)">Redhat 7.2下qmail安装(二)</a></li><li class="cl"><em class="no1">5</em><a href="http://www.knowsky.com/343314.html" title="qmail邮件系统安装(freebsd 3.4)">qmail邮件系统安装(freebsd 3.4)</a></li><li class="cl"><em class="no1">6</em><a href="http://www.knowsky.com/343313.html" title="Qmail邮件系统下防止滥用mail relay完全解决方案">Qmail邮件系统下防止滥用mail relay完全</a></li><li class="cl"><em class="no1">7</em><a href="http://www.knowsky.com/343312.html" title="Qmail使用SMTP发信的设置问题集">Qmail使用SMTP发信的设置问题集</a></li><li class="cl"><em class="no1">8</em><a href="http://www.knowsky.com/343311.html" title="SMTP-AUTH:Qmail+vpopmail(转)">SMTP-AUTH:Qmail+vpopmail(转)</a></li><li class="cl"><em class="no1">9</em><a href="http://www.knowsky.com/343310.html" title="qmail+vpopmail邮件过滤(练习篇)">qmail+vpopmail邮件过滤(练习篇)</a></li><li class="cl"><em class="no1">10</em><a href="http://www.knowsky.com/343309.html" title="Linux邮件服务器软件比较">Linux邮件服务器软件比较</a></li> </ul> </div> </div> </div> </div> <div class="clear"></div> </div> </div> <script type="text/javascript"> /*学院图加*/ var cpro_id = "u2656836"; </script> <script type="text/javascript" src="http://cpro.baidustatic.com/cpro/ui/i.js"></script> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https'){ bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else{ bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> <div class="footer"> <div class="main"> <p><a href="http://wpa.qq.com/msgrd?v=3&uin=1783983&site=qq&menu=yes" target="_blank">广告刊登</a> | <a href="http://wpa.qq.com/msgrd?v=3&uin=1783983&site=qq&menu=yes" target="_blank">版权声明</a> | <a href="http://wpa.qq.com/msgrd?v=3&uin=1783983&site=qq&menu=yes" target="_blank">联系我们</a> | <a href="http://m.knowsky.com">移动版</a></p><p>Copyright © 2000-2017 www.knowsky.com All rights reserved | 沪ICP备05001343号</p> </div> </div> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> <script type="text/javascript"> jq(".slide").slide({ mainCell:".bd ul",titCell:".hd ul",delayTime:300,interTime:3000,effect:"fade",autoPlay:true,autoPage:true,switchLoad:"_src"}); jq(".slide").each(function(s){ jq(this).hover( function(){ jq(this).children(".slider-nav").show(); }, function(){ jq(this).children(".slider-nav").hide(); }) }) jq(".slb").slide({ mainCell:".bd ul",titCell:".hd ul",delayTime:300,interTime:3000,effect:"leftLoop",autoPlay:true,autoPage:true,switchLoad:"_src"}); </script> <script type="text/javascript"> jq(".topnav li.dropdown").each(function(s){ jq(this).hover(function(){ jq(this).addClass("hover"); },function(){ jq(this).removeClass("hover"); }) }) </script> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "//hm.baidu.com/hm.js?a89960924c54901de40c2bead6702d5c"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <script type="text/javascript"> /*knowsky统一悬浮*/ var cpro_id = "u2868460"; </script> <script type="text/javascript" src="http://cpro.baidustatic.com/cpro/ui/c.js"></script> <script> (function(){ var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?ace780b426d47cac8ab65a3e85eb9406":"https://jspassport.ssl.qhimg.com/11.0.1.js?ace780b426d47cac8ab65a3e85eb9406"; document.write('<script src="' + src + '" id="sozz"><\/script>'); })(); </script> </body> </html><script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script>