I wrote a VS 2005 C# express programme that accesses a web service. It works fine when there's a
direct connection to the internet, but on two different PCs with internet access via a proxy, I get
this exception:
System.Net.WebE xception: The request failed with HTTP status 407: Proxy Authentication Required.
at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.ReadRes ponse(SoapClien tMessage message,
WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String methodName, Object[]
parameters)
The internet works fine on this PC with IE and Firefox. In these two browsers, a proxy is set up.
Use a proxy server for your LAN is ticked, and the address and port (80) has been entered.
Am I right in saying that my programme is not able to access the settings of the web browsers, so I
need to configure my programme with the proxy details. If so, how do I supply this information to
the proxy. Or is there a way to access the settings from IE/Firefox? 6 6407
"Jon" <.wrote in message news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
>I wrote a VS 2005 C# express programme that accesses a web service. It works fine when there's a
direct connection to the internet, but on two different PCs with internet
access via a proxy, I get
this exception:
System.Net.WebE xception: The request failed with HTTP status 407: Proxy
Authentication Required.
at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.ReadRes ponse(SoapClien tMessage
message,
WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
methodName, Object[]
parameters)
The internet works fine on this PC with IE and Firefox. In these two
browsers, a proxy is set up.
Use a proxy server for your LAN is ticked, and the address and port (80)
has been entered.
Am I right in saying that my programme is not able to access the settings
of the web browsers, so I
need to configure my programme with the proxy details. If so, how do I
supply this information to
the proxy. Or is there a way to access the settings from IE/Firefox?
MS.Public.dotne t.framework.web services.
Thanks for you suggestion - I've re-posted my question there.
Jon
"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message news:eY******** *****@TK2MSFTNG P06.phx.gbl...
"Jon" <.wrote in message news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
>I wrote a VS 2005 C# express programme that accesses a web service. It works fine when there's a
direct connection to the internet, but on two different PCs with internet
access via a proxy, I get
this exception:
System.Net.WebE xception: The request failed with HTTP status 407: Proxy
Authentication Required.
at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.ReadRes ponse(SoapClien tMessage
message,
WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
methodName, Object[]
parameters)
The internet works fine on this PC with IE and Firefox. In these two
browsers, a proxy is set up.
Use a proxy server for your LAN is ticked, and the address and port (80)
has been entered.
Am I right in saying that my programme is not able to access the settings
of the web browsers, so I
need to configure my programme with the proxy details. If so, how do I
supply this information to
the proxy. Or is there a way to access the settings from IE/Firefox?
MS.Public.dotne t.framework.web services.
Jon wrote:
System.Net.WebE xception: The request failed with HTTP status 407:
Proxy Authentication Required. at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.ReadRes ponse(Soap
ClientMessage message, WebResponse response, Stream responseStream,
Boolean asyncCall) at
System.Web.Serv ices.Protocols. SoapHttpClientP rotocol.Invoke( String
methodName, Object[] parameters)
hah, interesting timing, I had a very similar issue just the other day,
my workaround was to do this...
WebProxy proxy = new WebProxy(@"http ://proxy.prod.ques t.corp:8080");
proxy.Credentia ls = new NetworkCredenti al(usr, pswd, "prod");
WebRequest.Defa ultWebProxy = proxy;
Cheers Tim.
--
Tim Jarvis wrote:
WebProxy proxy = new WebProxy(<proxy URI>);
proxy.Credentia ls = new NetworkCredenti al(usr, pswd, <domain>);
WebRequest.Defa ultWebProxy = proxy;
Oops, I shouldn't really have shown the proxy server address here :-)
oh well.
Also, I call this a workaround, because I think that the more correct
thing to do is for the Soap client to provide a .proxy property so that
it can include the authentication in the soap header (I think this is
correct) as this approach, is a sledgehammer approach...but it does
work, and thats the main thing.
Cheers Tim.
--
Thanks Tim.
You may also be interested in the reply that I had when I reposted on dotnet.framewor k.webservices.
Jon
"Tim Jarvis" <ti*@jarvis.com .auwrote in message news:e0******** *****@TK2MSFTNG P02.phx.gbl...
Tim Jarvis wrote:
WebProxy proxy = new WebProxy(<proxy URI>);
proxy.Credentia ls = new NetworkCredenti al(usr, pswd, <domain>);
WebRequest.Defa ultWebProxy = proxy;
Oops, I shouldn't really have shown the proxy server address here :-)
oh well.
Also, I call this a workaround, because I think that the more correct
thing to do is for the Soap client to provide a .proxy property so that
it can include the authentication in the soap header (I think this is
correct) as this approach, is a sledgehammer approach...but it does
work, and thats the main thing.
Cheers Tim.
--
Jon wrote:
Thanks Tim.
You may also be interested in the reply that I had when I reposted on
dotnet.framewor k.webservices.
Cool, thanks for that. That link that Steven sent you is useful.
Cheers Tim.
-- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bruce Farmer |
last post by:
I am having problems accessing a managed object from
unmanaged code. Specifically, I have a .NET forms
application with a web service proxy. The forms
application links to an unmanaged DLL which uses callbacks
to receive data via TCP. The data received in the
callback must be passed to a web service via a web method
provided by the proxy. So the callback (which is
unmanaged code) needs to access the proxy (managed object)
to send the...
|
by: Eirik Brattbakk |
last post by:
Hi
I have some problems accessing a soap service made in c# using an
ATL/MFC client over SSL. I have tried both CSoapMSXMLInetClient and
CSoapWininetClient as template arguments with my stub class.
The service is returning with the error code: -2147467259. I have not
succeeded to find any additional information about the error. The
"SoapFault" method seems to return only a bunch of question marks.
|
by: George |
last post by:
Hello,
I'm running an ASPX application "WebApplication1" which
consumes a web service (service1.asmx) hosted on a machine
with IP (128.1.7.x) . The web service is located in the
intranet.
The web methods can be invoked successfully
if "WebApplication1" is located in machines with the same
subnet (128.1.7.x).
However, it fails if "WebApplication1" is hosted on
|
by: John Bown |
last post by:
This query is similar to some others on this discussion group, but none of
them were resolved! Can anybody help:
The issue is related to integrated authentication. First I'll describe a
simple scenario not involving ISA server, which works as expected:
The web service is hosted on a server in the same domain as my workstation
with anonymous access denied, and integrated authentication enabled.
If I access the web service using the...
|
by: David Laub |
last post by:
I've also posted this issue to a Sun/java formum, but since it appears to be
an integration issue, this may be the better place to posr:
I have written a dot net/c# Web Services doesn't fully work with J2ME client
a) c# web service works with c# WIndows Client (local & remote web service)
b) c# web service works with J2ME client - when the Web Service is local
c) c# web service fails with J2ME client - when the Web Service is remote
...
| |
by: Nestor |
last post by:
Hello all,
I'm begining in the web services world and I've reading about how to
invoke them using javascript from Mozilla browser (version 2.0 in my
case).
I found a very interesting example here:
http://www.mozilla.org/projects/webservices/examples/babelfish-wsdl/index.html
The problem I have is this: When I try to adapt the invokation on the
|
by: =?Utf-8?B?Tmljaw==?= |
last post by:
Hello,
I hope I'm hoping posting this in the correct place. I've got an asmx web
service and another guy created a client app that we distribute to customers.
We seem to be having some trouble with customers accessing the service who
are behind firewalls or are using proxy servers.
Is there a way to detect their settings so we can avoid this problem? I
don't have a great deal of experience accessing web services, so any help is...
|
by: Ben |
last post by:
I'm trying to access a c# web service from a web form.
I set up the web reference proxy object as follows:
proxy.PreAuthenticate = true;
proxy.Credentials = CredentialCache.DefaultCredentials;
but i get a 401 error. If I switch the IIS website from Integrated
Windows Auth to Anonymous, it works... but i want it to use windows
|
by: Jon |
last post by:
I wrote a VS 2005 C# express programme that accesses a web service. It works fine when there's a
direct connection to the internet, but on two different PCs with internet access via a proxy, I get
this exception:
System.Net.WebException: The request failed with HTTP status 407: Proxy Authentication Required.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message,
WebResponse response, Stream...
|
by: Anton |
last post by:
Hi,
when accessing a secured 3rd party webservice i'm getting a 401 HTTP Statuscode (unauthorized). When entering the url in
a browser and entering the username and password manually, the wsdl is returned. So the username and password should
be ok.
I'm using this code:
Merchant myMerch = new Merchant();
myMerch.merchantIdentifier=merchantId;
|
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...
| |
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,...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
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...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |