BookmarkSubscribeRSS Feed
chithra
Quartz | Level 8

Hi,

I am reposting the same which i posted in the sas stored processes forum.

i need to read the attachemnt(file.zip) from the client and create a sas webservice(stored process) in sas.

what the web service needs to do is, read the attachment from the request body and copy to one of the folder in the sas server.

Could anyone know about this?

we are using Restful webservice and can be tested in REST API/Client

 

when I tried, I am getting unsupported media type, does this means that do I need to configure anything in the stored process which I created in the sas eg to support this content type?


Thanks,
Chithra

5 REPLIES 5
andreas_lds
Jade | Level 19

So you get a zip file ... what is in that file? If you export a Stored Process with SMC you get an SPK, which is a zip-file.

chithra
Quartz | Level 8

Zip file contains a folder with sas programs,'.sas' extensions

andreas_lds
Jade | Level 19

@chithra wrote:

Zip file contains a folder with sas programs,'.sas' extensions


I don't think that a stored process can be created without using smc or Enterprise Guide.

chithra
Quartz | Level 8

stored process is created using sas enterprise guide

andreas_lds
Jade | Level 19

Sorry, but i don't understand, what you try to do. In you initial post, you wrote: "i need to read the attachemnt(file.zip) from the client and create a sas webservice(stored process) in sas."

 

And now:


@chithra wrote:

stored process is created using sas enterprise guide


I think you have to explain your scenario with a lot more text, to make in understandable for outsiders.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 5 replies
  • 1151 views
  • 0 likes
  • 2 in conversation