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.asmxService Description:
http://www.tng.co.za/GolfFeed/GolfPropertiesFeed.asmx?WSDLThe 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