OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   =?utf-8?Q?=E7=AD=94=E5=A4=8D=3A_=5Bxml-dev=5D_Http_XML_File_?=

[ Lists Home | Date Index | Thread Index ]
  • To: "asim" <qazi@advcomm.net>,<xml-dev@lists.xml.org>
  • Subject: =?utf-8?Q?=E7=AD=94=E5=A4=8D=3A_=5Bxml-dev=5D_Http_XML_File_?=
  • From: =?utf-8?B?ZmNf5pa56LaF?= <fangc@bsoft.com.cn>
  • Date: Tue, 29 Apr 2003 09:18:59 +0800
  • Thread-index: AcMNbPS4ugGHkDyGTrmR501Wfq2I+wAfkMLw
  • Thread-topic: [xml-dev] Http XML File

Using ASP please use IServerXMLHTTP interface.
Here's an example:
<%@language=JScript%>
<%
   var objSrvHTTP;
   objSrvHTTP = Server.CreateObject ("MSXML2.ServerXMLHTTP.4.0");
   objSrvHTTP.open ("GET","http://someotherserver/respond.asp";, false);
   objSrvHTTP.send ();
   Response.ContentType = "text/xml";
   Response.Write (objSrvHTTP.responseXML.xml);
%>

to use at the client side,we could select "IXMLHTTPRequest" interface.
Here's an example:
<script language="JScript">
  function PostOrder(xmldoc)
  {    
    var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.4.0");
    xmlhttp.Open("POST", "http://myserver/orders/processorder.asp";, false);
    xmlhttp.Send(xmldoc);
    return xmlhttp.responseXML;
  }
</script>

and I never use load to load xml in URL except dataisland in html page.Did anyone do this in succeed?

-----邮件原件-----
发件人: asim [mailto:qazi@advcomm.net] 
发送时间: 2003年4月29日 5:57
收件人: xml-dev@lists.xml.org
主题: [xml-dev] Http XML File 

Hi 
  when i use xmldom.load method it need the physical path of xml file .... and works great, plz guide me what should i learn or read if i wana use xml data which coming through http like http://somesite.com/xmldata/test/xmlfile.xml  what should i do if i wanna load this file
I m using ASP and MSXML parser
 
Thankx in Advance
Qazi Asim




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS