1. Home
  2. Using Warewolf
  3. Using External Web Services

Using External Web Services

It is worth noting that there are Web Service connectors to use for GETPOST, PUT, DELETE, and TRACE Request methods over HTTP or HTTPS. If you are unsure or it has not been specified, leave the default GET.

To create a Connector to an external web service so that it can be consumed inside your Warewolf service:

  1. To start, create a new service by clicking the new service button in the toolbar.
    New Services Icon in Warewold
  2. Scroll down or search in the Tool Box until you find the HTTP Web Methods section. Drag GET, PUT, POST, DELETE or TRACEonto the design surface and connect it to the Start node.If you are unsure or it has not been specified, leave the default GET.
  3. Select a source from the drop down list or click New to create a new one.
    1. If you are creating a New connection, enter the URL into the Address bar, for example http://test-warewolf.cloudapp.net:3142/
    2. Select either Anonymous or User authentication
      1. If you selected User authentication, provide your credentials.
    3. Enter a Default Query. This is the query that will be shown by default every time you use this source e.g. public/Hello World?Name=
    4. The Test Connection button should be enabled, click it.
    5. Save Web Source using the Save button in the toolbar navigate back to your new unsaved service.
    6. Expand the GET tool by double clicking it in the blank part of its title bar.
  4. Using the Source drop down list, find the web source you just created and select it.
  5. You can enter any Header and Value inputs that you want to use as inputs. These will be used at run time if no data is mapped in or the mapped in data is empty. You can use Variables here. If you are not using GET method in Step 2 above, put your Body in. You can use variables here.
  6. Note the URL and default Query String. You can add the ability to pass a variable in by adding [[Variable]] to the end of the query string.
  7. Now click on the Generate Outputs button then Test
  8. If there is any Test Data required, insert test data. This step enables Warewolf to get an idea of what data will be returned from the connector so the output maps can be built. The execution does not happen in a transaction.
  9. Click Test. You should get an output
  10. Now click Done. You will be taken back to the expanded view of the Web Method Connector.
  11. Note the DataListMessage in the Mapped To field of the Outputs. You will also see the same variable in the Variables list. To rename the Mapped To outputs, simply replace the name in the Mapped To field and click Done.
  12. To not return a particular field, simply remove its name. It will not be mapped out.
  13. Click Done
  14. To reuse this one connector as a service in its own right, simply Save a workflow service with this as the only step.

Not what you were looking for? Ask our expert users in the Community Forum.

FacebookTwitterLinkedInGoogle+Email
Updated on July 19, 2017

Was this article helpful?

Related Articles