Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-11-19 07:20 AM
Hi Experts,
I had invoked restful API hosting in azure from Object and received below error.
Internal : Unexpected error Error during Web API HTTP Request
HTTP Status Code: 407
HTTP Response Content: <HTML><HEAD>
<TITLE>Access Denied</TITLE>
This is because, form our network it has to go through proxy authentication to access external URI.
If i am browse to any external website from resource PC, then i am able to proceed run the object and get the response content. otherwise it will return 407 error.
This issue because of calling an external URI require a proxy authentication. How to call a rest API with enter the proxy authentication?
------------------------------
SHAHRULRIZAL SAID
------------------------------
I had invoked restful API hosting in azure from Object and received below error.
Internal : Unexpected error Error during Web API HTTP Request
HTTP Status Code: 407
HTTP Response Content: <HTML><HEAD>
<TITLE>Access Denied</TITLE>
This is because, form our network it has to go through proxy authentication to access external URI.
If i am browse to any external website from resource PC, then i am able to proceed run the object and get the response content. otherwise it will return 407 error.
This issue because of calling an external URI require a proxy authentication. How to call a rest API with enter the proxy authentication?
------------------------------
SHAHRULRIZAL SAID
------------------------------
Answered! Go to Answer.
1 BEST ANSWER
Helpful Answers
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-11-19 12:28 PM
The WebAPI feature of Blue Prism does not support proxy authentication. If the is a requirement there is a REST web service VBO available on the Digital Exchange that I believe supports this. If not, the alternative would be to use a code stage and invoke the .Net HttpWebClient object directly. With that, you can definitely set up proxy authentication.
------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------
------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-11-19 12:28 PM
The WebAPI feature of Blue Prism does not support proxy authentication. If the is a requirement there is a REST web service VBO available on the Digital Exchange that I believe supports this. If not, the alternative would be to use a code stage and invoke the .Net HttpWebClient object directly. With that, you can definitely set up proxy authentication.
------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------
------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-11-19 01:59 AM
Hi Eric,
Thank you very much on your response.
Will do it via code stage.
------------------------------
SHAHRULRIZAL SAID
------------------------------
Thank you very much on your response.
Will do it via code stage.
------------------------------
SHAHRULRIZAL SAID
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
19-08-20 02:31 AM
Hi Shah,
Were you able to handle the proxy authentication via code stage?
------------------------------
Aravinda Misra
------------------------------
Were you able to handle the proxy authentication via code stage?
------------------------------
Aravinda Misra
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
23-08-20 03:29 PM
Hi Aravindra,
Yes i had use it in code stage.
I am using below in code stage
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.google.com");
IWebProxy proxy = request.Proxy;
string URI = string.Empty;
if (proxy != null)
{
URI = proxy.GetProxy(request.RequestUri).AbsoluteUri;
}
WebProxy myProxy = new WebProxy();
Uri newUri = new Uri(URI);
myProxy.Address = newUri;
myProxy.Credentials = new NetworkCredential(UserName, Password,"MyDomain");
request.Proxy = myProxy;
var client = new HttpClient();
var uri = "http://www.google.com";
var response = client.GetAsync(uri);
------------------------------
SHAHRULRIZAL SAID
------------------------------
Yes i had use it in code stage.
I am using below in code stage
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.google.com");
IWebProxy proxy = request.Proxy;
string URI = string.Empty;
if (proxy != null)
{
URI = proxy.GetProxy(request.RequestUri).AbsoluteUri;
}
WebProxy myProxy = new WebProxy();
Uri newUri = new Uri(URI);
myProxy.Address = newUri;
myProxy.Credentials = new NetworkCredential(UserName, Password,"MyDomain");
request.Proxy = myProxy;
var client = new HttpClient();
var uri = "http://www.google.com";
var response = client.GetAsync(uri);
------------------------------
SHAHRULRIZAL SAID
------------------------------
