4 2156
Sam,
by working on some web services stuff I stumbled over the GlobalProxySele ction class (see online help for more details).
So I think you need to do something like:
Uri proxyURI = new Uri("http://someproxy:80");
WebProxy myProxy = new WebProxy(proxyU RI);
myProxy.Credent ials = new NetworkCredenti al("<userid for proxy>", "pwd for proxy>");
GlobalProxySele ction.Select = myProxy;
HTH,
Stefan
"Sam Santiago" <ss*******@n0sp am-SoftiTechture.c om> schrieb im Newsbeitrag news:e1******** ******@TK2MSFTN GP10.phx.gbl...
Can anyone provide some guidance, example, and/or links for configuring a client behind an authenticated proxy to access a web service via the Internet?
Thanks,
Sam
--
_______________ _______________ _
Sam Santiago ss*******@n0spa m-SoftiTechture.c om http://www.SoftiTechture.com
_______________ _______________ _
Hi,
Pseudo:
WebRef myWS = new localhost.WebRe f();
// Setup Credentials for endpoint
myWS.Credential s = DefaultCrendent ials;
// Setup Credentials for Proxy
myWS.Proxy.Cred entails = .....;
Result = myWS.ExecuteMet hod(XMLDomDoc);
Hope this helps,
Marvin Smit.
On Wed, 31 Aug 2005 21:36:24 -0700, "Sam Santiago"
<ss*******@n0sp am-SoftiTechture.c om> wrote: Can anyone provide some guidance, example, and/or links for configuring a client behind an authenticated proxy to access a web service via the Internet?
Thanks,
Sam
Thanks guys for the examples. I was trying to the use the WebProxy.GetDef aultProxy() function to read the IE settings, but it's returning an empty WebProxy object. Has anyone seen this behavior and have a work around. My current workaround is the read the registry settings directly from the HKCU\\Software\ \Microsoft\\win dows\\currentve rsion\\internet settings key.
Thanks,
Sam
--
_______________ _______________ _
Sam Santiago ss*******@n0spa m-SoftiTechture.c om http://www.SoftiTechture.com
_______________ _______________ _
"Sam Santiago" <ss*******@n0sp am-SoftiTechture.c om> wrote in message news:e1******** ******@TK2MSFTN GP10.phx.gbl...
Can anyone provide some guidance, example, and/or links for configuring a client behind an authenticated proxy to access a web service via the Internet?
Thanks,
Sam
--
_______________ _______________ _
Sam Santiago ss*******@n0spa m-SoftiTechture.c om http://www.SoftiTechture.com
_______________ _______________ _
For some reason this is not working for me, I keep getting 407.
System.Net.IWeb Proxy proxyObject = new System.Net.WebP roxy(proxyUrl,
false, null);
System.Net.Netw orkCredential cred = new System.Net.Netw orkCredential() ;
cred.UserName = @"domain\\uname ";
cred.Password = "pass";
CredentialCache cc = new CredentialCache ();
cc.Add(new Uri("http://192.168.1.100") , "NTLM", cred);
cc.Add(new Uri("http://192.168.1.100") , "Digest", cred);
cc.Add(new Uri("http://192.168.1.100") , "Basic", cred);
proxyObject.Cre dentials = cc;
theWS.Proxy = proxyObject;
theWS.PreAuthen ticate = true;
but this gives me a 407 error. Any ideas?
Sam Santiago wrote: Can anyone provide some guidance, example, and/or links for configuring a client behind an authenticated proxy to access a web service via the Internet?
Thanks,
Sam
-- _______________ _______________ _ Sam Santiago ss*******@n0spa m-SoftiTechture.c om <mailto:ss***** **@n0spam-SoftiTechture.c om> http://www.SoftiTechture.com _______________ _______________ _ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Daniel Santana |
last post by:
Hi, about Java WebServices, accessed by C#, I have two questions:
1) what I have to do, in order to use java webservices?
2) I search and I guess I must type the wsdl path in "add web reference".
Everything is fine... But I'm behind a proxy and I got this message, after
type my username and password (in the "Discovery Credential for Proxy Server"
popup:
"The underlying connection was closed: Unable to connect to the remote
server."
|
by: Joseph Geretz |
last post by:
I recently upgraded my server to Windows 2003. The first thing I noticed is
that my sample WebService pages no longer worked. The Invoke test button is
missing. This is addresed by the following KB article:
Microsoft Knowledge Base Article - 819267
INFO: HTTP GET and HTTP POST Are Disabled by Default
http://support.microsoft.com/default.aspx?scid=kb;en-us;819267
The article advises that a new block be inserted into Web.config (or into
|
by: news.microsoft.com |
last post by:
I have been looking around at the documentation and have come across a lot
about how to create webservices and consume them.
I have a fairly large 3 tier application with a ton of classes in c# that
are currently being used by the website. Is there a quick/ rad tool that can
take a c# class and generate a webservice proxy/asmx file? Any suggestions
that does not involve writing the guts of the code from scratch :) would be
really...
|
by: M.Posseth |
last post by:
scenario :
I had a remoting server , now this remoting server needed the ability to
comunicate with a Delphi 5 client, so i got the advise to switch to
webservices
now i rebuilded the Cassini webserver , so i can deploy it and
everything works fine
However i have one problem , and this is with my own .Net clients cause
|
by: sameer |
last post by:
hi all,
Description of my .net application:
Desktop application using webservices over the internet to communicate with
the sql server2000 database which is sitting behind the webserver.
Done in VS2003 using VB.net on framework 1.1, Database is sql server 2000
Application works perfectectly ok and no problems at all even if there is a
firewall in between.
Question is would my application have any problems if it is calling the
| |
by: sameer |
last post by:
hi all,
Description of my .net application:
Desktop application using webservices over the internet to communicate with
the sql server2000 database which is sitting behind the webserver.
Done in VS2003 using VB.net on framework 1.1, Database is sql server 2000
Application works perfectectly ok and no problems at all even if there is a
firewall in between.
Question is would my application have any problems if it is calling the
|
by: sameer |
last post by:
..NET Framework 1.1
VS2003
Application is making webservice calls from behind a proxy server and then
freezes and dies.
Questoin is can i use webservice over proxy server( i guess another name of
them is ISA ... if i a not wrong), if yes how?
Sameer
|
by: ndskim |
last post by:
Currently I have the Web Services Proxy code generated by the WSDL.Exe
command line. My Web app consists of ASP.NET in VB 2005 version.
Here is what I have in the sample code:
' Set Proxy Credentials to the current network DefaultCredentials.
With lds_WebService
|
by: tommurray |
last post by:
Hi
I have a problem with one of our service providers website uses windows integrated authentication. I have searched through the internet and all I can see for solutions to this problem is get a better proxy server that supports windows intergrated authentication (the proxy we are behind does!)
Also to by pass the proxy server, which cannot happen as its a security requirement.
When attempting to access the site in question no login...
|
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: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: 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: 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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |