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 > Geocoding > Enterprise Tax
Spectrum > Web Services
Spectrum > Spatial > Spectrum Spatial
Spectrum > Spectrum Platform
Spectrum > Quality > Addressing
Spectrum > Quality > Spectrum Quality
Spectrum > Spatial > Spectrum Spatial Insights
Spectrum > Discovery
Spectrum OnDemand
Spectrum > Dataflow Designer
Spectrum > Spatial > Spectrum Spatial Analyst
Spectrum > Quality > Context Graph
Version
Latest
Language
English
Product name
Spectrum OnDemand
Title
Spectrum OnDemand Web Services (REST)
Copyright
2024
First publish date
2006
ft:lastEdition
2024-07-17
ft:lastPublication
2024-07-17T23:23:16.481321

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.