Your SAS programs, embedded in web apps and elsewhere

Calling Restful Web Service from SAS

Reply
Senior User
Posts: 1

Calling Restful Web Service from SAS

Hi,
I'm trying to call my Stored Process Web Service as a Restful Web service inside the browser but I’m not sure how to pass input parameters.

This is my web service wsdl file for SOAP call,

http://gbsasp01:7980/SASBIWS/services/SocialMedia?wsdl

This method works fine, but i need a restful call.

I can reach 'restful end point' and call web service without input like below. This method works fine too.

http://gbsasp01:7980/SASBIWS/rest/SocialMedia/SocialMedia

Here is my link to call Restful with input,

http://gbsasp01:7980/SASBIWS/rest/SocialMedia/SocialMedia?tweet=tryout

But i fail in this syntax.Response is below and it seems input parameter cant pass into the web service.

<DENEME>

<TWEET missing=" "/>

<DEPARTMENT> DepartmentValue </DEPARTMENT>

<TOPIC> TopicValue </TOPIC>

<RELATION> RelationValue </RELATION>

<SENTIMENT> SentimentValue </SENTIMENT>

</DENEME>

wsdl file and Stored Process code are in the attachments.

Could you give me sample for calling restful Web Service from SAS with input parameter.

Semih.

Attachment
Ask a Question
Discussion stats
  • 0 replies
  • 462 views
  • 0 likes
  • 1 in conversation