Web API call-

Hi Team,

I'm trying to build api call with the mock api attached in screenshot, but getting an error "invalid URI-the format of uri could not be determined"

I'm attaching the screenshots of process.
Could some one help me in this.

API:
https://anypoint.mulesoft.com/mocki...f0-d5b0831bc896/WBS?WBSNumber='ALS00098-01-01'

headers:
client_id=a
client_secret=b
authorization=c

i have added base url as-https://anypoint.mulesoft.com/mocking/api/v1/links/e54ee430-18f1-492e-a6f0-d5b0831bc896/WBS

Action: getdetails-wbs
method-get
url path-?WBSNumber='ALS00098-01-01'



header
View attachment 1591286929317.png

response-
View attachment 1591286957404.png

error when trying to call from process:

View attachment 1591287013737.png
 

Pete_L

Active Member
In the Blue Prism System tab, find Web API Services. It will have a sub-branch called Connection Settings. Click on that, and here you will need to enter the URI of the API. You can find it from the base URL in your API's documentation. It is the Scheme and host from the URL. In your example, it would be https://anypoint.mulesoft.com/ . Also enter the connection limit and the maximum idle time and click Save Changes in the bottom right corner of the screen. This should resolve the Invalid URI error.
 
Hi Pete,
Thanks for your suggestion , I tried to rectify the URI Issue but iam facing new error now
"
Internal : Unexpected error Error during Web API HTTP Request
HTTP Status Code: 415
HTTP Response Content: {"code":"INVALID_RESPONSE_ACCEPT_HEADER","message":"Error trying to find response for invalid media type"}

even-though I added content-Type:application/json in header still facing this issue.
could you please help me on this.

View attachment 1591345791296.png
 

Pete_L

Active Member
I'm glad your URI issue was resolved. The 415 error needs to be worked out with the developer of your API. Also check out the Blue Prism web services user guide on the portal.
 
Top