Table of Contents

Search

  1. Preface
  2. Web Services
  3. SOAP Web Services
  4. WSDL Data Object
  5. Schema Object
  6. How to Create a SOAP Web Service
  7. Operation Mappings
  8. Parsing Web Service SOAP Messages
  9. Generating Web Service SOAP Messages
  10. Web Service Consumer Transformation
  11. REST Web Services
  12. How to Create a REST Web Service
  13. REST Web Service Consumer Transformation
  14. REST Web Service Consumer Transformation Use Cases
  15. REST and SOAP Web Service Administration
  16. Datatype Compatibility

Web Services Guide

Web Services Guide

How to Deploy a Data Object as a REST Web Service

How to Deploy a Data Object as a REST Web Service

You can deploy a relational data object or a flat file data object as a REST web service.
  1. In the Object Explorer, right-click the data object to access in the web service.
  2. Click
    Deploy
    Deploy as REST web service
    .
    The
    Deploy Application
    dialog box appears.
    The Deploy dialog box shows a Name field and an empty grid to add objects to the application.
  3. Enter a name for the application and click
    Next
    . Do not add any object.
    The
    Deployment Method
    dialog box appears.
  4. Choose the Data Integration Service to deploy the application to.
    The following image shows the
    Deployment Method
    dialog box:
    The Deployment Method dialog box has an option to deploy the application to a Data Integration Service or to export the application to an archive file. Employ to Service is enabled.
  5. Click
    Next
    .
    The
    REST Web Service
    dialog box appears.
  6. Enter a name for the web service.
    The following image shows the
    REST Web Service
    dialog box:
    The REST Web Service dialog box has a field to enter a web service name and the Model repository location for the web service.
  7. Click
    Next
    to choose columns to include in the resource or to add more resources. Click
    Finish
    to create a resource that includes all the columns in the data object.
    If you click
    Next
    , the
    REST Resource
    dialog box appears.
  8. On the REST Resource dialog box, enter a name for the resource and select the columns to include in the definition.
    By default, all columns are selected. Do not clear any field. The deployed web service requires a default mapping.
    The following image shows the REST Resource dialog box:
    The Rest Resource dialog box shows a list of resources in the left panel. It shows a list of columns to include in the resource definition in the right panel. All columns must be included for the default mapping.,
  9. Click
    Finish
    to deploy the web service.
    Do not add resources or change the resource definition.
  10. To add more resources to the web service, click
    New
    .
    You can create a resource from a data object or you can manually enter the columns in the resource.

0 COMMENTS

We’d like to hear from you!