Hello,
voila je cherche à ouvrire un fichier .php qui génère une fichier XML sur un serveur distant en ASP.
Et je ne trouve pas comment faire.
Merci
++
K.
Google -> Microsoft.XmlHTTP
Super marci,
ca marche nikel avec :
<%
Response.Buffer = True
Dim objXMLHTTP, xml
' Create an xmlhttp object:
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
' Or, for version 3.0 of XMLHTTP, use:
' Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
' Opens the connection to the remote server.
xml.Open "GET", "http://mon_utl.com/exporttoxml.php", False
' Actually Sends the request and returns the data:
xml.Send
'Display the HTML both as HTML and as text
Response.Write "</xmp>"
Response.Write xml.responseText
Response.Write "</xmp>"
Response.Write xml.responseText
Set xml = Nothing
%>
mon fichier XML s'affiche nikel, maintenant, j'aimerais pouvoir inséré une feuille de style pour que la mise en page soi propre en HTML.
et la je galère encore un peu.
Merci
++
K.
Salut,
Ton object xml dispose aussi d'une propriété responseXML qui te file la réponse de ta requette HTTP sous la forme du object DOM XML. Il est ensuite facile de lui appliquer une transformation XSL...
Toute la doc est dans la MSDN Library...
A+
Eric
je suis novice en ASP.
j'ai travaillé jusqu'à maintenant en PHP, alore les objet DOM XML. c est un peu du chinois pour moi lol.
Si tu arrivais à m eguiller un peu mieu ca serait simpa.
Merci
++
k.
