Outsystems - RESTFul webservice

Outsystems - RESTFul webservice

How do i consume a RESTFul webservice in Outsytems 7 ? I see that using SOAP/WSDL webservice is straight forward in ServiceStudio.  
RESTful webservices are not usually associated with a definition language to either describe their actions or the data they return. As such it's not generally easy to automatically generate code to consume them.

Having said that, RESTful webservices are usually based on simple HTTP requests and XML or JSON return values. You can perform HTTP requests using actions from the HTTPRequestHandler extension, and you can use some existing Forge extensions to process the data afterwards, like XML Records or JSON.

I would say that the easiest way to achieve this would be to create an action wrapper for your RESTful web services in an integration eSpace and reference it everwhere it's required.
Thanks..  Got it working with GET, but how do i get it working with POST ?
Hi Lokendar,

I think you'll struggle to do POSTs using the standard inbuilt tools available in Service Studio.

I've been looking at solutions for this myself and the forge components Ricardo had pointed towards might solve your problem; however I think his advise with regards to Integration Studio is probably your best course of action.

(Presuming you're using the .NET stack:) You may want to look at HttpClient as a solution for connecting to your REST service. There's some very good examples of using HttpClient here: http://blogs.msdn.com/b/webdev/archive/2012/08/26/asp-net-web-api-and-httpclient-samples.aspx