The Iguana Demo

Setup: 03 - Lookup Web Service

The following instructions will help you set up the third Iguana demo channel (03-Lookup Web Service) correctly.

Step One: Set up the files

Before you create the channel, you need to make sure that you have all the files needed. Download this project zip file: 03_Lookup_Web_Service_From_HTTPS.zip

Step Two: Create the channel

Now you are ready to create the channel itself:

  1. From the Iguana Dashboard, click the Add Channel button. The Add Channel dialog appears.
  2. Make the following component selections:
    • Source = From HTTPS
    • Destination = To Channel
  3. Click the Configure Channel button. The Channel Configuration screen appears, providing you access to the new channel’s settings.
  4. In the Channel tab, enter the following information:
    • Channel name = 03-Lookup Web Service
    • Description = This is an example of Iguana as a web server.
  5. In the Source tab, enter the following information:
    • Use translator = Translator
    • URL path = lookup
  6. (Optional) You may have to activate the port.
  7. Click the Add Channel button.

    Warning! Upon creating the channel, you will receive an automatic ‘error’ because you have not yet saved a milestone. Don’t worry, we will fix this when we add the code (see below).

Step Three: Import the code

With the channel set up, now you can import the code:

  1. If you are not already in the Channel Configuration screen, click the channel’s name in the Dashboard to open it.
  2. In the Source tab, click the Edit Script hyperlink. Iguana launches the Translator and the following dialog appears:
  3. Enable the Import project from zip file option.
  4. Click the Choose File button.
  5. In the dialog that appears, browse and select the Filter project zip file that you downloaded earlier (03_Lookup_Web_Service_From_HTTPS.zip).
  6. Click the Import button. Iguana loads the project into the Translator (including the code and module libraries).
  7. Save this script’s first milestone.

To watch this channel in action:

  1. From the Iguana Dashboard, click Start to start the channel.
  2. In the Type column, hover your mouse over the ‘HTTPS‘ Source component. The following tooltip appears:
  3. Click on the URL Path provided to execute a web query and see the results.

Leave A Comment?