Adding POST Support to a REST Web Service - web_services - 23.1

Spectrum Web Services Guide

Product type
Software
Portfolio
Integrate
Product family
Spectrum
Product
Spectrum > Web Services
Version
23.1
Language
English
Product name
Spectrum Technology Platform
Title
Spectrum Web Services Guide
First publish date
2007
Last updated
2024-10-17
Published on
2024-10-17T00:33:46.811413

Some Spectrum Technology Platform modules come with standard web services, such as the ValidateAddress web service that comes with the Spectrum Universal Address. These web services support GET only. You can add POST support to these standard web services by creating a user-defined service in Spectrum Enterprise Designer and placing the standard service in it as a stage. Since you can expose user-defined services with POST support, you are in effect creating a web service that exposes the standard service with POST support.

  1. Open Spectrum Enterprise Designer.
  2. Go to File > New > Dataflow > Service.
  3. Drag an Input and Output stage onto the canvas.
  4. Drag the service onto the canvas and connect the Input and Output stages to it.

    For example, if you want to expose ValidateAddress with POST support, your dataflow would look like this:



  5. Configure each stage.
  6. Go to Edit > Web Service Options.
  7. Check Expose as REST web service.
  8. Click Add, select POST, and select the input and output format.
  9. Click OK, then click OK again.
    Note: For detailed instructions on configuring web service options, see Exposing a Service as a Web Service.
  10. Save and expose the service.

You have created a user-defined web service that exposes a standard service as a REST web service that supports POST.