Question

Retrieving data from a web service using classic ASP

Asked by: tfmouse

Need help to do the following:
1. setup a classic asp page script to retrieve data from a web service (see web service info below)
2. This asp page retrieving the data should save this data into a MS SQL database.
3. The data to be retrieved is real estate information i.e. Properties for sale

We need to setup this page to retrieve data from the webservice. Havnt done this before so clueless at the moment. We only need a few fields to write to the SQL Database i.e. PropertyTille, Description, Price, Rooms, Location, Bathrooms and Images.
 
Web Service info:
Web service URL: http://www.tng.co.za/GolfFeed/GolfPropertiesFeed.asmx
Service Description: http://www.tng.co.za/GolfFeed/GolfPropertiesFeed.asmx?WSDL

The following functions are exposed:
GetAllListings(string username, string password)
GetAllListings takes a username and password as parameters. The function then returns all golf listings.

GetUpdatedListings(string username, string password, int daysBack)

GetUpdatedListings takes a username and password as paramaters as well as in integer field indicating the amount of days back to check for updates. The function returns the same values as the GetAllListings method but the query is structured differently. Only listings with a new or modified date that falls within the amount of days specified will be returned.

GetAllImages(string username, string password)

GetAllImages takes a username and password as parameters. It then returns the paths to all images associated with golf property listings. This function does not return the actual image, but rather a URL that can be fed into a browser which will then retrieve the image from Property24.com servers.

GetUpdatedImages(string username, string password, int daysBack)

GetUpdatedImages takes an username and password as parameters. It also takes an integer number indicating the amount of days back to search for images. All image paths that have a modified date within the specified time will be returned. This function does not return the actual image, but rather a URL that can be fed into a browser which will then retrieve the image from Property24.com servers. Please note that the modified states of images and listings are separate. This implies that if a listing has been modified, it does not necessarily mean any associated images have entered a modified state. Only when the image set for a listing has been appended or completely reloaded will those images that have been changed be flagged as modified.


The web services were designed with the following usage in mind.

The GetAll functions should be used whenever the need arises to populate a database from scratch. This could be due to a catastrophic failure or simply the need to get a new, fresh database started.

The GetUpdated functions should then be used every couple of days to ensure that the client database is in synch with the TNG database. If too much time has elapsed between calls to a GetUpdated function, the need may arise to retrieve all active listings via a call to a GetAll function

A note on updated images vs. updated listings.

The modified status of listings and images are separate. This implies that if a listing was modified, its images may not have entered a modified state. Therefore, while a call to GetUpdatedListings will return the modified listing, a similar call to GetUpdatedImages may not return the images associated with that listing. Since you have retrieved these images with the initial call to GetAllImages, they are already in your database.

The only times an image enters a modified state, is either when new images are added, or a total renewal of all images was performed

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-06-02 at 08:53:40ID24457031
Tags

Classic ASP

,

Web Service

,

SOAP

Topics

Active Server Pages (ASP)

,

SOAP

,

Web Services

Participating Experts
3
Points
500
Comments
6

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. upgrading from classic asp to aspx .NET
    Hi! I have Windows 2000 Web Server with IIS and ASP classic. If I were to keep my current projects as ASP classic and want to add new projects to utilize ASP.net, what would be involved? Can I do this with Windows 2000 webserver? 1) What are the things I would need to ins...
  2. ASP Classic to ASP.net
    I will be asking a series of questions along the time subject.... I will be working with an ASP Classic system that has been turned into an ASP.NET application by wrapping the classic code, rather than actually programming it in proper ASP.NET technology. I have not yet see...
  3. Tag Cloud in Classic ASP
    Does anyone know of any good examples of a classic ASP tag cloud, using a database? Thanks
  4. HTML Comments in Classic ASP
    Hello, We recently migrated a legacy classic asp website from a Windows 2000 server to 2003 to see how it would run. What I've found is that on the 2003 box everywhere in the code where there is an HTML comment causes an error. The comments of course are also present in th...
  5. Protect Classic ASP
    Chaps I have a Classic ASP/ SQL Server application that is deployed on a shared Web Server and I need to give full access to the server - including my code. I have looked at VB Encryption and found a tool to undo it very soon afterwards so it is not viable. I probably canno...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: _Stilgar_Posted on 2009-06-03 at 02:50:45ID: 24534677

To consume a web-service from ASP classic (note the different approaches):

http://articles.techrepublic.com.com/5100-10878_11-5643603.html#
http://www.aspnextgen.com/Tutorial/99CA4563-FBD4-411F-A9C6-FF9E8A0E664F.dcik
http://www.velocityreviews.com/forums/t76035-calling-a-net-web-service-from-classic-asp.html

Then, with the gathered data, you can do whatever you want, including calling an "INSERT INTO" SQL statement to get it into MsSQL data table.

 

by: tfmousePosted on 2009-06-03 at 06:04:34ID: 24535969

thanks for the reply. i've been to these articles before and havn't really helped me.

can anyone write the script to consume the service for me or get me started? would be greatly appreciated.

 

by: b0lsc0ttPosted on 2009-09-22 at 22:58:17ID: 25400342

Do you have something as a start and need help with just a part of it?  From the way the question was asked it seems you are actually looking for it all to be done for you.  Classic ASP doesn't make this easy and those steps would involve quite a bit of time.

If you can narrow down the question and are working to make all this yourself then let us know those details and clarify what your question is here.  You can always open new questions for other issues, if you have them, as you work on the project.  If this will be more than you want to make yourself then you should consider hiring a developer to do this for you.  It would be beyond the scope of an EE question I am afraid.

bol

 

by: kevp75Posted on 2009-09-23 at 05:35:54ID: 25402343

aye b0l...

EE is made for "how come this does this?" or "i tried this, but zed doesn't work right"

not for "I need this done for me..."

Stilgar gave you some great example above try them out, and if they don't work, post the code and the error(s) that are happenning and we'll help.

I'll give you some pointers....

You need to create a SOAP envelope, then pass it to the server via XMLHttp.  From that you can execute whatever you need to get whatever data you need

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...