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

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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