How to consume Restful webservice?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
25-01-17 11:29 AM
Hi,
We are querying a database using 4 dynamic variables and then using the data in the process. As of now, we are using a modified version of OLEDB connection object. However, we want to migrate to a webservice which will be taking the 4 parameters as input and a collection will be given as output from the database.
The webservice is a RESTful webservice. Can someone help on methods of execution? Do we need to write additional code for this?
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
26-01-17 04:59 PM
Im pretty sure BP only directly supports SOAP, so you'll have to Write additional code for this. You can try to use a WebClient or use https requests or something in Your code and see if you can get a Connection to the webservice. Remember to add the credentials to the WebClient if you go that route... Something like
wc As New WebClient
wc.Credentials = New NetworkCredential(user,pw)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
26-01-17 08:21 PM
Is the default ""Webservices - REST"" object not sufficient? It supports OATH and simple HTTP requests
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
27-01-17 03:53 PM
Webservices are great if you are communicating data accross domains or accross the internet. For communication within a domain I actually thing database communication if possible is a simpler and more robust method of providing source data to a Blue Prism solution than using web services.
As mentioned, Blue Prism does not provide native support for RESTful web services - only SOAP is built into the product. However, they do provide HTTP and JSON objects with the product (in the VBO folder) but you will need to have the developer/programmer knowledge to use these to create the interface to your bespoke web service. Maybe contact your Blue Prism DEM if you require more help with this.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
27-01-17 06:40 PM
Thanks.
As of now, I have written a code which tries to call the webservice, but there are some problems in that. It is saying that for calling, the webservice needs to be HTTP and not a HTTPS webservice.
It is known that this is a HTTPS webservice with SSL security.
Does anybody has a clue on how this can be worked around?
