473,686 Members | 2,754 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Proxy authenticated required

Hi

I am trying to call a web service from behind a MS ISA Server on a sbs2003
machine. The calling program is coming up with this error; The request
failed with HTTP status 407: Proxy Authentication Required ( The ISA Server
requires authorization to fulfil the request. Access to the Web Proxy
service is denied. ).

Any idea how I can provide the proxy authentication within the vb.net code
when calling the web service?

Thanks

Regards
Nov 23 '05 #1
1 25674
John

Create a WebProxy instance and give it the name of your proxy server and a
NetworkCredenti als instance.

Set the webservice.Prox y property equal to your web proxy instance.

Sorry, C# only example.

NetworkCredenti al nc = new NetworkCredenti al( "hsimpson", "duffbeer",
"homersdoma in" );
WebProxy proxy = new WebProxy( "http//webproxyserver: 80" );
proxy.Credentia ls = nc;
MyWebService mws = new MyWebService();
mws.Proxy = proxy;

Glenn

"John" <Jo**@nospam.in fovis.co.uk> wrote in message
news:uM******** ******@TK2MSFTN GP09.phx.gbl...
Hi

I am trying to call a web service from behind a MS ISA Server on a sbs2003
machine. The calling program is coming up with this error; The request
failed with HTTP status 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfil the request. Access to the Web Proxy
service is denied. ).

Any idea how I can provide the proxy authentication within the vb.net code
when calling the web service?

Thanks

Regards

Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
8363
by: JezB | last post by:
I'm getting the above error thrown somewhere in the code: XPathDocument xPathDocument = new XPathDocument(FileLocation); XPathNavigator xPathNavigator = xPathDocument.CreateNavigator(); XPathNodeIterator nodeIterator = xPathNavigator.Select("/plist/dict"); nodeIterator.MoveNext(); nodeIterator = nodeIterator.Current.SelectChildren(XPathNodeType.All); where FileLocation contains the full path of a local XML file. Why is this trying to...
2
2992
by: John | last post by:
Hi My ms access app is posting to a web site using ms internet transfer control. Client pcs where app is running are connected to a small business server 20003/ISA Server 2000 server. The app works fine on all pcs which have win xp sp1 or earlier. However it does not work on a new pc which came with sp2 pre-installed. I have disabled the sp2 firewall but the app still does not work. The error I get is 'HTTP Error 407 - Proxy...
2
6466
by: davidcbrown | last post by:
I started using .NET 2003 and my first application is to parse an HTML form. But I am behind an ISA firewall and get "(407) Proxy Authentication Required" with the following code. The proxy settings in webReq.Proxy appear to be OK, even without setting them as below. IE works, but this does not. Any ideas? (or where to ask?) -- David Dim webReq As WebRequest = WebRequest.Create(txtUrl.Text) webReq.Proxy = WebProxy.GetDefaultProxy Dim...
4
30069
by: Morten Snedker | last post by:
I'm trying to download a file. I've tried both using webclient and the httpWebRequest. Either way it returns a "407 proxy authentication required". The program is to be run externally, so basically I don't know the users login-name, password or domain. So that makes setting the proxy in code irrelevant, doesn't it? When searching the web it appears to be a common problem. But I haven't found my solution and still can't get it to...
1
1790
by: John | last post by:
Hi I am trying to call a web service from behind a MS ISA Server on a sbs2003 machine. The calling program is coming up with this error; The request failed with HTTP status 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfil the request. Access to the Web Proxy service is denied. ). Any idea how I can provide the proxy authentication within the vb.net code when calling the web service?
2
11427
by: rcp | last post by:
Hi all, I've read all posts from all existing threads and none of them worked to solve my problem, although its exactly the same. I'll try to explain my case and see if a kind soul could help me out: I've a win32 service in C# on a client machine A, which accesses a WS (C#) on a server machine B (hosted on an IIS) Case 1: If I try to add the WSDL for the WS through VS2005, the 'Discovery
1
2910
by: arun8588 | last post by:
hai arun here, iam working as a systems asst. in a company. i would like to know how to configure outlook express on a proxy authenticated system. my server 10.146.2.2 on which internet is connected n distributed n port is 8888 please help in this
3
25806
by: Learning.Net | last post by:
Hi All, I have an windows application created in C# &it is running fine on several of our customer. It does a httpWebrequest in the background. Everything was working fine but some customer are facing "The Remote server returned an error :(407) Proxy Authentication Required " {
2
5419
by: krishnakrish | last post by:
Hi, My name is krishna. I am using asp.net 2.0 with C#. I amusing Windows XP professional as OS. When I post some data to an external web server I get the error as "The Remote server returned an error :(407) Proxy Authentication Required ". Here is the code I am using, Please help me out at the earliest. public void JACCS_Response(string date,string jaccs_id,string irn,string company_id,string xmlid) { string...
0
2847
by: malkin | last post by:
Hi all, I have an external application that calls WebClient to download a file from our server. It runs fine without any proxy server involved. However, once there is a proxy server layer, it throws a 407 proxy authentication required error. My question is that since I do not know whether the users are going to download a file thru a proxy, is there a way in C# to specify a general way of coding to handle proxy and non-proxy users? ...
0
8586
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8523
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9057
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8781
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7613
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6444
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2959
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.