There are may be situations where the output of your web service might change during the app building process because one or more fields were added to your web service output. In order to use the new fields in your app we need to know of their existence.
When you first imported your web service we (the AppMachine platform) created, what we call, an output definition. This definition specifies all the fields and their meta data that we can expect to be available in the result of your web service. As stated, this definition will be generated during the import of your web service and is therefore a static definition. In order to use the new fields available in your web service we need to add these fields to this output definition.
In this How To we will guide you through the few simple steps of updating your output definition.
- An existing Web Service block;
- Go to https://design.appmachine.com and login;
- Open the app containing the Web Service block that should be updated;
- Select the Web Service block;
- Click the "..." button next to the dataprovider field;
- A dialog screen will open showing the settings for the Web Service attached to this building block. Make sure the Settings tab is selected;
- Click the "Update the output parameters" button to start updating the output definition of your web service;
- A wizard will open up showing you the detected fields in your web service output. If necessary adjust the datatypes of the fields and click "Finish";
- Close the dialog showing the settings of your web service and you are all done!
Note: We will never delete any existing fields in your output definition, not even if they are no longer present in the result of your web service. If you want to delete fields you can do this manually going to the "Output parameters" tab and click the trashcan button next to the field you want to delete.