BookmarkSubscribeRSS Feed
RichardP
Quartz | Level 8

Hello, 

Yes this would appear a very simple thing to achieve but I cannot seem to get this working. I want to use the REST api and pass a parameter via the webservice to SAS. The parameter value is stored in a macro variable. I can get this working when specifying the JSON endpoint.

However when I specify the REST endpoint I simply cannot get this to work. An error is returned Unsupported Media Type. I have no idea how to define the stored process, what content-type is the REST point expecting? I can get this working when providing the request using XML but I simply need to pass some parameters in. I need to use REST since I will be streaming output back to the client (with the JSON endpoint datastreams cannot be used as output). 

 

What am I doing wrong? Any help very much appreciated!

 

 

1 REPLY 1

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 907 views
  • 0 likes
  • 2 in conversation