Re: ASP and web service ?

Tech-Archive recommends: Speed Up your PC by fixing your registry



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" <user@xxxxxxx> wrote in message news:OD7CPEV8GHA.3620@xxxxxxxxxxxxxxxxxxxx:

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.

.



Relevant Pages

  • Re: Error extracting innerHTML using DHTML in an HTA page
    ... I will look at using the XMLHTTP object. ... on the Server side is the result of a rather complex FOR XML EXPLICIT SQL ... > Use the XMLHTTP object to request the xml from the server-side asp ...
    (microsoft.public.scripting.vbscript)
  • Re: Dynamic Checkboxes & Event handling
    ... > I don't know anything about XML. ... one solution to consider is using an XMLHTTP object to call ... another ASP page to update the DB. ... Look half way down - "Calling a server-side Script without refreshing the ...
    (microsoft.public.inetserver.asp.general)
  • Re: rafraichissement aiutomatique dune page asp
    ... en Faites c'est juste un affichage, car les enreg je les gére par des ... client par des rs pour l'affichage) avec un peu de xml et feuille de style ... >> j'ai une page asp composée de tableaux. ... >> J'aimerais rafraichir les informations modifié sur chaque pages dés ...
    (microsoft.public.scripting.vbscript)
  • Re: understanding XSLT
    ... Classic ASP is a procedural server-side technology that handles HTTP ... ASP.Net and the .Net platform include support for XML in many ways, ... Visual Studio 2005 also includes much XML support, ... support for XSLT, which includes the ability to debug XSLT. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP developer sought !
    ... publishing entire .htm web sites from content management and templates. ... References and cool sites to show you from industrial XML data services to ... > ASP Developer/Company who has experience in Java Script and Microsoft ... > SQL Server sought urgently for ongoing contract work. ...
    (microsoft.public.sqlserver.programming)