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

Spectrum OnDemand Web Services (REST)

Product type
Software
Portfolio
Verify
Product family
Spectrum
Product
Spectrum > Discovery
Spectrum > Web Services
Spectrum > Spatial > Spectrum Spatial Insights
Spectrum > Dataflow Designer
Spectrum > Geo Addressing > Enterprise Tax
Spectrum > Spatial > Spectrum Spatial Analyst
Spectrum OnDemand
Spectrum > Quality > Context Graph
Spectrum > Spectrum Platform
Spectrum > Quality > Addressing
Spectrum > Spatial > Spectrum Spatial
Spectrum > Quality > Spectrum Quality
Version
Latest
Language
English
Product name
Spectrum OnDemand
Title
Spectrum OnDemand Web Services (REST)
Copyright
2024
First publish date
2006
Last updated
2024-08-28
Published on
2024-08-28T12:55:51.727818

Some Spectrum OnDemand 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.