Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / October 2006

Tip: Looking for answers? Try searching our database.

ASP and web service ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
KaNos - 16 Oct 2006 19:29 GMT
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.
Bryan Phillips - 17 Oct 2006 03:04 GMT
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

> 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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.