« MonkeyBread Software … | Home | MBS Real Studio Plugi… »

Access Web Services (with SOAP) from Filemaker using MBS Plugin

With our MBS FIlemaker plugin we have CURL functions which can do various network things. One of them is to send requests to a web service. Now it can be a little bit tricky to get this done in a Filemaker script, so we made an example for one service:

The CDYNE Weather is a free SOAP Web Service that provides you with up to date weather information in the United States. This information is derived from the National Oceanic and Atmospheric Administration's (NOAA) National Weather service into a clean and easy to parse XML format.
The WSDL describes the functions and you can read it here. Looking at the GetCityWeatherByZIP function you see exactly what XML you need to send and what you receive as answer.

With MBS Plugin, we start a new CURL session. We set various options to turn it into a HTTP POST request to our web service URL. We also need to specify a few header fields for SOAP Action and content type. Than we send request. From the answer, we parse the field values and apply them to our fields.

You can see the example database here: WeatherWebService.fp7.zip
If you have a question, please do not hesitate to ask us.
16 05 12 - 15:24