16
Views
10
Comments
REST WebServices in 5.1
Question
Can anyone advise what is the best way to consume REST WebServices with version 5.1 of the platform?

Thanks,
2019-11-12 17-31-26
Justin James
 
MVP
I've been writing extensions and using libraries like RestSharp. I'd love it if this was built in as nicely as SOAP services, but REST isn't as nicely integrated into .NET or Java like SOAP is...

J.Ja
2012-10-31 12-34-01
Leo Maynard
Justin James wrote:
I've been writing extensions and using libraries like RestSharp. I'd love it if this was built in as nicely as SOAP services, but REST isn't as nicely integrated into .NET or Java like SOAP is...

J.Ja
 
 Hi Justin,

Do you have any extensions that you could possibly share. I've done some initial groundwork to consume a Rest service using RestSharp, but it would be nice to see someone else's example to see if i'm using the api correclty/sufficiently.

This may me too much to ask, but if you also had an OML of an espace that uses the Extension as well.

Cheers,
2019-11-12 17-31-26
Justin James
 
MVP
Leo Maynard wrote:
 
 Hi Justin,

Do you have any extensions that you could possibly share. I've done some initial groundwork to consume a Rest service using RestSharp, but it would be nice to see someone else's example to see if i'm using the api correclty/sufficiently.

This may me too much to ask, but if you also had an OML of an espace that uses the Extension as well.

Cheers,
 
 Leo - The work I did around this is customer confidential, unfortunately. I ended up writing a lot of LINQ-to-XML for reading, and a lot of manual string building for POST/PUT, due to the nature of the service I was connecting to, and a pile of other custom code since it was using 3 leg OAuth authentication that required the user to authenticate the token.

J.Ja
2019-03-14 16-24-46
Nelson Freitas

Hugo or Justin,


I think you could create a post at "Wisdom of Crowds", I'm sure several people will "like" that idea. Well, at least I will "like" it :)


Cheers.

2019-11-12 17-31-26
Justin James
 
MVP
Just did it, thanks for the reminder Nelson!

J.Ja
2012-10-31 12-34-01
Leo Maynard
Thanks for the quick response. I guess that is the drawback of Restful services. Alot of customization.

Our outsystems contractors have made it work once already using HTTPWebRequest logic, and implementing all of the deserialization, but after seeing your mention of RestSharp, i started investigating to see how much we can encapsulate by using this api.

Thanks again.

2012-08-01 17-33-40
Gerry
Any update on this? I need to call MobileIron REST web services and I can't figure out how to make the URL call and authenticate.
2022-11-12 11-28-30
Gonçalo Martins
Staff
Hi Gerry,

Did you check this component from forge  RESTFulWebservice ?
Hope it helps.

Best Regards,
Gonçalo M.
2014-02-13 10-06-38
Ricardo Silva
Actually, I've made a comprehensive guide on how you can go about integrating with REST APIs. You can read it here.

In Gerry's case, if I'm not mistaken, MobileIron provides a WADL to describe the API. The API was quite extensive, so you may want to take the "Integration Studio" approach and after generating a DLL to consume the API with something like https://wadl.codeplex.com/ .
2012-08-01 17-33-40
Gerry
Yes Gonçalo the RESTFulWebservice will help process the response, and Ricardo, your guide is very helpful as well. The main problem I have right now is not knowing how to supply username and password to the REST API calls. I need help with that.
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.