All - Am looking for a bean or plugin that will accomplish an http GET with a query that is made against a 3rd party server. The server validates and returns properly formed US street addresses alond with other pertinent data. The get looks like:
http://www.thirdparty.com/AddressValida … ate?input=ZIP112345SOMETHING54321CompanyNamestreet_addresscityName, stateAbbreviation zipCode
which returns several name value pairs with the corrected address information like:
<?xml version="1.0" encoding="utf-8" ?>
12345
ZIP1
31
99999
5555
C031
123 MAIN ST.
COMPANY NAME
CITY ST 99999-5555
CITY NAME
ST
(more here)
6/19/2006 9:36:41 PM
The get is of type “application/x-www-form-urlencoded”
Any thoughts or direction on a specific bean that accepts NV pairs and such? Thank you ! John
Servoy comes with a HTTP bean. You can use this to fetch data from other webservices.
Check the Plugins node in the Servoy Editor.
We thoughts so too - and gave it a go… but no joy. It could just be that the documentation is thin on the plugin, but if our service used POSTS, we could accomplish the task, but because it is a GET, we cannot. ?? John
Hoi John,
With a GET you simply put the arguments in the URL.
With a POST you use the Poster class of the HTTP plugin.
Perhaps you should url encode your url? Some services might not enjoy the spaces you show in your sample URL. The servoy plugin simply does a GET with the given URL, no rocket science involved.
ROCLASI:
Hoi John
I just saw I actually used ‘Hoi’ instead of ‘Hi’.
Hoi == Hi in dutch.
Smile. I’ll take “Hoi” as encouragement! Will redo the coding and see what happens. Thank you! John