AppMachine Help Center

How can we help you?

Follow

Update your Web Service import

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.

Prerequisites

  • An existing Web Service block;

How To

  1. Go to http://design.appmachine.com and login;
  2. Open the app containing the Web Service block that should be updated;
  3. Select the Web Service block;
  4. Click the "..." button next to the dataprovider field;
    Schermafbeelding_2014-04-28_om_09.39.14.png
  5. A dialog screen will open showing the settings for the Web Service attached to this building block. Make sure the Settings tab is selected;
    Schermafbeelding_2014-04-28_om_09.41.13.png
  6. Click the "Update the output parameters" button to start updating the output definition of your web service;
    Schermafbeelding_2014-04-28_om_09.42.29.png
  7. 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";
    Schermafbeelding_2014-04-28_om_09.44.05.png
  8. 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.

Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

Comments