[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Retrieving data from a web service using classic ASP

Asked by tfmouse in Active Server Pages (ASP), SOAP, Web Services

Tags: Classic ASP, Web Service, SOAP

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
[+][-]06/03/09 02:50 AM, ID: 24534677Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/03/09 06:04 AM, ID: 24535969Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/22/09 06:27 PM, ID: 25399351Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]09/22/09 10:58 PM, ID: 25400342Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/23/09 05:35 AM, ID: 25402343Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625