Consume webservices from ASP

  • Thread starter Rubén Valenzuela T.
  • Start date
R

Rubén Valenzuela T.

Hi,

I'm wondering if there is a way of consuming webservices from any technology
(.NET, JAVA based) from and ASP based application - not ASP.NET. If so
please direct me on the steps to follow or to any URL you might know

On the same issue, must I jave W2003 Server to use ASP.NET, I downloaded the
..NET framework and installed it on my W2K and seem to work. But I'd like to
know if I go into production with my website using this configuration if
everything will work - it's more like a mix ASP/ASP.NET. The if this is
possible maybe I could consume webservices using .NET ASP's and pass them to
my ASP applications...any comments?

regards,

Rubén Valenzuela T.
Jefe de Proyecto
MAPFRE Compañía de Seguros de Chile
Teatinos 280, Piso 4-6
Fono 6947136
 
F

Franco Figún

Hello
If you want to consume a web serv in traditional ASP 3.0, you nedd to use
something like this:

<SCRIPT LANGUAGE="VBSCRIPT" RUNAT="SERVER">
OPTION EXPLICIT

SUB APPLICATION_ONSTART()
APPLICATION("CONNECTSTRING") = GETAPPSETTINGS("CONNECTSTRING")
END SUB

function getappsetting(key)

dim url, xmlhttp, dom, node

url = "http://localhost/appservice.asmx"
url = url & "getappsettings?key=" & key

set xmlhttp = server.createobject("microsoft.xmlhttp")
call xmlhttp.open("GET", url, false)
call xmlhttp.send

set dom = server.createobject("microsoft.xmldom")
dom.load(xmlhttp.responsebody)
set node = dom.selectsinglenode("//string")

if not node is nothing then
getappsettings = node.text
end if
end function
</script>

If you want to learn more about this i recommended the book "Building
ASP.NET web services"...
Best regards

--
FF
www.francofigun.com.ar
www.microsofties.com.ar
MSN: (e-mail address removed)
UIN: 305336919
Yahoo MSN: (e-mail address removed)
 
R

Rubén Valenzuela T.

Thanks Franco, I'll give it a try and tell you what happends.

Regards,

Rubén
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top