History: Webservice Registration
Source of version: 9 (current)
Copy to clipboard
# Webservice Registration {DIV(float=right,width="200px")}{BOX()} {DIV(style='text-align: center')}Related Topics{DIV} - ((PluginWebservice|Webservice Plugin)) - ((dev:Administration|Bugs and Wishes)){BOX}{DIV} **Overview** : With this feature you can pull data from any JSON or SOAP enabled service, for example from Yahoo: **To access** : Click the **Webservice Registration** icon {icon name="admin_webservices" rotate="270" size="2" title="Image may vary depending on the icon set in use."} on the ((Admin Panels|Admin Panel)) <br /> or <br /> Access **http://example.org/tiki-admin.php?page=webservices** **Note** : *This feature is mainly useful for the ((PluginWebservice|Webservice Plugin))* {PREFDOC(tab="webservices" img="6:499")/} ## Example Webservice returning JSON. 1. In the "url" field enter: {CODE()}http://luciash.eu/paypal_balance_conversion_in_json.php?amount_in=%amount_in%¤cy_in=%currency_in%¤cy_out=%currency_out%{CODE} 2. In the "Type" dropdown leave "REST" selected. 3. In the "Parameters" textarea fill in the parameters as: {CODE()}%amount_in% %currency_in% %currency_out% {CODE} 4. Click "Lookup" button. Now you can test the parameters. You should see 3 new fields appear where you can enter the values to test. Enter: 1. amount_in: 2 2. currency_in: EUR 3. currency_out: USD The returned data under the "Response Information" will be something like this: {CODE()}Array ( [amount_out_formatted] => 2.49 [from_currency_code] => USD [exchange_rate_formatted] => 1.24567 ) {CODE} When tested you can save the Webservice under a name, e.g. paypalexchangerate (cannot contain anything else than letters) by clicking the "Register" button. Now you have registered Webservice called "paypalexchangerate" which you can use in ((PluginWebservice)).