In classic ASP, you will need to create the XmlHttp object like below
(code excerpt from
http://www.4guysfromrolla.com/webtech/110100-1.shtml
):
<%
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://www.4Guysfromrolla.com/", False
' Actually Sends the request and returns the data:
xml.Send
'Display the HTML both as HTML and as text
Response.Write "<h1>The HTML text</h1><xmp>"
Response.Write xml.responseText
Response.Write "</xmp><p><hr><p><h1>The HTML Output</h1>"
Response.Write xml.responseText
Set xml = Nothing
%>
Bryan Phillips
MCSD, MCDBA, MCSE
Blog:
http://bphillips76.spaces.live.com
"KaNos" <us**@site.frwrote in message
news:OD**************@TK2MSFTNGP04.phx.gbl:
Hello service world;
My question is really simple?
How to consume a .Net web service in an asp page (not .net old asp) in
server side (not in client side like ajax) ?
Thanks for responses.