Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Posting Array of Objects to Web Service

Canvas now enables you to post array of objects to a web service in a feasible and viable manner. By means of simple and efficient configurations, you can post the array of objects to a web service, thereby facilitating the means of posting the data to a web service in an effective way.
To post the array of objects to a web service, perform the following steps in Canvas Studio:
Let's assume that a webs service connection has already been created in Canvas Studio. For detailed information on creating a web service connection, refer Creating a Web Service Connection.

  1. In the Connections list, right-click the existing web service connection and select the Create Data Source option.


The Create New Data Source screen appears.

  1. Enter an appropriate name in the Web Service Name field, e.g. POST WEB SERVICE DS.
  2. Enter the relative part of the web service URL in the Relative part of the URL field, e.g. publisher/AutoFunding.
  3. Click the Communication App ID and select the REST POST JSON Gateway option.

  1. Click the Upload JSON option to upload the appropriate JSON file, e.g. Details.json.

  1. Specify the appropriate column root in the Column Root field, e.g. $.Response.

  1. In the JSON Configuration, categorized under Request JSON Configuration, click the icon, on the extreme right side of the Object tab to create a new object.

  1. Type the appropriate array name in the Name field, e.g. record.

Note: For an array, the suffix $form should be added to the array Name, e.g. record$form.

  1. Click the Text drop-down list and select the Array option.
  2. Proceed to click Add.

  1. Hover the mouse on the extreme right side of the newly created array and click icon to add a new object.

  1. Click the Text drop-down list and select the Object option.

  1. To add the object, click Add.

  1. Hover the mouse on the extreme right side of the newly created object and click icon to add a new object.

  1. Provide the appropriate key in the Name field, e.g. accountNumber.
  2. Enter an appropriate value in the Value field, e.g. $form.accountNumber.

Note: The value should be mandatorily provided as $form.<Value> in the Value field, e.g. $form.accountNumber.

  1. To add the object, click Add.

  1. To save the web service data source, click Save.


A confirmation message, indicating the successful creation of web service data source, appears.

  1. Click Ok.
  • No labels