Process exposed as WebService in AD integrated environment - 401- Unathorized exception
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
24-10-17 08:58 PM
Hi
I am having BP environment which is AD integrated fully and my user(windows login) has full rights (all roles /permissions enabled). I have exposed a process as a WebService and trying to call it from a .NET program. I tried giving my windows credentials while calling it from code, but it still gives 401- Not authorized exception.
I know in case of regular (non AD) environment, it works and I am able to call it , but seems like for AD integrated, we need something more either at BP end or at code end to ensure the call is successful.
Kindly suggest. !!
Thanks,
Vivek
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
18-12-17 04:53 AM
Same issue here. Is this resolved? If yes, please share. Thanks!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
28-01-20 10:16 PM
Hello -
I am trying to call the wsdl created for my object using powershell. BUt I am getting 401 - Unauthorized error. Below is my code snippet. Any help would be greatly appreciated.
$webservicex = New-WebServiceProxy -Uri $url -namespace WebServiceProxy
[xml]$result=$webservicex.Sum("auto",1.0,2.0)
and the error message is
Exception calling "Sum" with "3" argument(s): "The request failed with HTTP status 401: Unauthorized."
At line:3 char:1
+ [xml]$result=$webservicex.Sum("auto",1.0,2.0)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : WebException
------------------------------
Rahul Kannan Sethu MAdhavan
------------------------------
I am trying to call the wsdl created for my object using powershell. BUt I am getting 401 - Unauthorized error. Below is my code snippet. Any help would be greatly appreciated.
$webservicex = New-WebServiceProxy -Uri $url -namespace WebServiceProxy
[xml]$result=$webservicex.Sum("auto",1.0,2.0)
and the error message is
Exception calling "Sum" with "3" argument(s): "The request failed with HTTP status 401: Unauthorized."
At line:3 char:1
+ [xml]$result=$webservicex.Sum("auto",1.0,2.0)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : WebException
------------------------------
Rahul Kannan Sethu MAdhavan
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
29-01-20 09:30 AM
I am no expert in Web Service and its usage in various languages but please note:
- Blue Prism exposed Web Services use SOAP protocol
- Authentication header with basic authentication has to be used
- in case of different AD domains the user has to be specified as "<domain>\<userid>"
I just tried it yesterday within Blue Prism itself (process calls WS exposed process) and from outside using SOAP UI application.
edit:
as you already mentioned, the permissions have to be set in Blue Prism accordingly.
- execution rights on the process (and dependencies)
- Web Service consumer right
- Blue Prism exposed Web Services use SOAP protocol
- Authentication header with basic authentication has to be used
- in case of different AD domains the user has to be specified as "<domain>\<userid>"
I just tried it yesterday within Blue Prism itself (process calls WS exposed process) and from outside using SOAP UI application.
edit:
as you already mentioned, the permissions have to be set in Blue Prism accordingly.
- execution rights on the process (and dependencies)
- Web Service consumer right
