Adding POST Support to a REST Web Service

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.