Need some help with integrating ASP with ASP.NET
Page 1 of 1
LeoNatan
☢ NFOHump Despot ☢



Posts: 73238
Location: Ramat HaSharon, Israel 🇮🇱
PostPosted: Thu, 5th Feb 2009 14:05    Post subject: Need some help with integrating ASP with ASP.NET
Hey guys!

I have a web service with two web methods on one server, which return XmlNode (I can't touch those), and the server that I have, which runs a web site, has no support for ASP.NET. I need to somehow call the web service, get the XML data it returns and parse it.

I tried searching in Google, but didn't find anything interesting.

Any help would be appreciated.
Back to top
Rinze
Site Admin



Posts: 2343

PostPosted: Thu, 5th Feb 2009 14:18    Post subject:
Easiest is if you have the MS Soap Toolkit on that server, you can simply create a soapclient, connect and consume the webservice like any other COM object.

Otherwise google for soap and classic asp and you will find some sample code.
Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73238
Location: Ramat HaSharon, Israel 🇮🇱
PostPosted: Thu, 5th Feb 2009 14:28    Post subject:
Thanks Rinze! I will look at that. Soap, if I remember correctly, is the protocol used by the .NET Framework (by default) to transfer objects over the network, right?

Also, another small question, is it possible, if I have two HTML files, to somehow put an ASP page "in the middle," and somehow use the ASP page to redirect to the second HTML file but filling a form on the second? (Basically the user fills a form in the first HTML file, the ASP checks something in the XML, and has to redirect to to the second HTML page.) I would have integrated the second HTML page into the ASP, but the HTML files are already there, and I want to have a minimal impact.

Thanks in advance!
Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73238
Location: Ramat HaSharon, Israel 🇮🇱
PostPosted: Thu, 5th Feb 2009 14:35    Post subject:
According to this:
http://www.w3schools.com/soap/soap_syntax.asp

It has to have a very specific syntax, which isn't the case. I get a simple XML:

Code:

<Availability>
<Room>
</Room>
<Room>
</Room>
</Availability>
Back to top
Rinze
Site Admin



Posts: 2343

PostPosted: Thu, 5th Feb 2009 15:34    Post subject:
Ah, not a standard webservice then.
Dim oDoc As New Msxml2.DOMDocument30
oDoc.load("http://server/doc.xml")

To show the other HTML file you can do any of 3 things. Read the html file and output it, or use a html meta tag to go to the new page or set a http header to go to the other file.
Back to top
LeoNatan
☢ NFOHump Despot ☢



Posts: 73238
Location: Ramat HaSharon, Israel 🇮🇱
PostPosted: Thu, 5th Feb 2009 15:45    Post subject:
Thanks Rinze, will look into these things. Smile
Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - Programmers Corner
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group