Looking for values over an intranet or Internet
This example is similar to the previous one, with the difference being that you have to lookup the museum opening hours on a website instead of a web server. In this case, you will use the HTTP Client step.
Getting ready
You must have a database with the museum structure shown in the Appendix, Data Structures and a web page that provides the museum opening hours. The recipe uses an ASP page named hours.asp
, but you can use the language of your preference. The page receives the museum's identification and returns a string with the schedule. You can download a sample web page from the book's website.
How to do it...
Carry out the following steps:
Create a new transformation.
Drop a Table input step into the canvas, in order to obtain the museum's information. Use the following SQL statement:
SELECT id_museum , name , city , country FROM museums JOIN cities ON museums.id_city=cities.id_city
Add a HTTP Client step from the Lookup category...