cancel
Showing results for 
Search instead for 
Did you mean: 

How to consume Restful webservice?

YogitaKulkarni
Level 3
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

AdamSørensen
Level 3
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)

__
Level 4
Is the default ""Webservices - REST"" object not sufficient? It supports OATH and simple HTTP requests

Denis__Dennehy
Level 15
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.

YogitaKulkarni
Level 3
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?