Importing Web Service Parameters from URL

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Calling Web Services > Adding a Web Service Call (REST-Style) >

Importing Web Service Parameters from URL

If the URL to the Web service uses parameters, you can instruct MapForce to parse the URL and import any parameters automatically. When you use this option, any template, matrix, or query parameters extracted from the URL become available in the Parameters table of the Web Service Call Settings dialog box, where you can further manipulate them as necessary.

 

Example of a URL with template parameters: http://example.org/api/products/{id}

Example of a URL with matrix parameters: http://example.org/api/products;sort=asc;category=1;page=1

Example of a URL with query parameters: http://example.org/api/products?category=1&page=2&sort=asc

 

Note:A URL must begin with either "http://" or "https://" to be parseable.

 

 

To import Web service parameters from a URL:

1.Open the Web Service Call Settings dialog box (see Web Service Call Settings ).
2.Under Service Definition, select Manual.
3.Click Import from URL.

mf_ws_06

4.Enter or paste the URL to the Web service in the text box, and click OK.

© 2019 Altova GmbH