Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 call a web service from ASP page

Author  Topic 

ciaran
Starting Member

40 Posts

Posted - 2006-01-13 : 09:33:35
Is it possible to call a web service form and ASP page

MichaelP
Jedi Yak

2489 Posts

Posted - 2006-01-13 : 14:15:16
You should be able to do an HTTP POST or GET to call an ASP.net WebService from an ASP 3.0 web page. You probably need to change the web.config of teh asp.net webservice to allow for POST and GET though, if the webservice is "remote" to the ASP page.

Did that make sense?

Michael

<Yoda>Use the Search page you must. Find the answer you will. Cursors, path to the Dark Side they are. Avoid them, you must. Use Order By NewID() to get a random record you will.</Yoda>
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2006-01-13 : 16:44:30
Never tried that, but if its remote, a post/get would be seen by the client.

Unless you use a server.execute or XML HTTP request object
Go to Top of Page

MichaelP
Jedi Yak

2489 Posts

Posted - 2006-01-13 : 17:39:33
Are you trying to execute this "behind the scenes" or are you trying to something along the lines of AJAX?

If you do it behind the scences a post / get solution should work with the XML HTTP object as afrika mentioned.

Michael

<Yoda>Use the Search page you must. Find the answer you will. Cursors, path to the Dark Side they are. Avoid them, you must. Use Order By NewID() to get a random record you will.</Yoda>
Go to Top of Page

ciaran
Starting Member

40 Posts

Posted - 2006-01-17 : 11:05:54
Hi all,
Thanks for the response. Yes i am trying to execute this "behind the scenes". I will look up XML HTTP object as you guys mentioned. Thanks for the info
Go to Top of Page

ciaran
Starting Member

40 Posts

Posted - 2006-01-17 : 11:20:24
check this link

http://www.aspfree.com/c/a/ASP/Consuming-a-WSDL-Webservice-from-ASP/
Go to Top of Page
   

- Advertisement -