Showing posts with label Web Services. Show all posts
Showing posts with label Web Services. Show all posts

Tuesday, October 30, 2018

Exposing Blue Prism Process as API - SOAP Architecture in BluePrism

Objective: Let's perform calculation (sum of two numbers) by calling API exposed from Blue Prism Sever.

We should bifurcate this work in smaller tasks so that implementation could be visible possible. Here are smaller tasks:


  • Create an object performing Summation of two numbers
    • Object must be accepting two numbers as two inputs in start
    • Object must return result as summation
  • Create a Process calling above created object 
    • Process must be accepting two numbers as two inputs in start
    • Process must return result as summation
    • Publish this process
  • Expose Process as an API
Bingo! looks this must fulfill the process.


Task 1:

This is an object accepting two numbers and stage "Calc1" is performing summation of those two numbers and returning this in END stage.



Task 2:

Let's create a process which accepts two numbers as input so that any one calls it can pass two numbers to calculate.

Addition Stage is calling object we created above by passing both numbers we would get from THE API call.

Note: Ignore Email stage as I wrote to check if summation has happened when ever API is called.



We must pass result as an output so that whoever is calling this API must get an expected result of summation. Don't forget to publish this process!


Task 3:

Go to System Manager and go to Exposure underneath Processes. You must expose process as I have exposed WSCal process which will perform summation as explained in Task 2.




Finally we need to check if exposed API works or not. You can check XML by clicking https://localhost:8181/ws this will list all Objects and Processes exposed from BP server. Make sure you have port entry in hosts file. 
Now target is to very our API.
I have installed  SoapUI application to test API exposed. I am skipping this whole process of installing and configuring API however let's jump on to result. I have passed two values 56, 34 as displayed in following image and gives result at right hand side as 90. 

Note: You must pass Blue Prism credentials to access API. 




Feel free to ask questions.

Wednesday, August 29, 2018

Configure and call Third Party Web Service (Web API) in Blue Prism

Blue Prism has endless capabilities when it comes to automate business processes securely keeping scaling in the context all the time. If some caught with a scenario where a service or process needs to be call using Web API without accessing GUI which normally exists. For example medical companies has to validate any information they label on medicine and get approval from medicine department. Likewise insurance may have API exposed to, possibly, create policy or claim.


Let's explore how we can configure a Web Service within Blue Prism and call appropriate method to automate business process. I am taking an example of performing calculator basic functions using Web WSDL API. Following are the steps:



  1. Go to System Tab -> Web Services (Inside Objects in navigation) -> Click on "Add Service" link. It will open a popup to configure API
  2. Blue Prism asks to supply Web Service URL (Make sure API is WSDL only, Blue Prism doesn't support REST APIs) then click on next button to supply credentials