RE: WCF Proxy Server settings not working
- From: stcheng@xxxxxxxxxxxxxxxxxxxx ("Steven Cheng")
- Date: Tue, 14 Oct 2008 09:59:23 GMT
Hi Clint,
does the further information help you some? If there is still anything else
we can help, please feel free to post here.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
--------------------
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
From: stcheng@xxxxxxxxxxxxxxxxxxxx ("Steven Cheng")
Organization: Microsoft
Date: Fri, 10 Oct 2008 08:12:00 GMT
Subject: RE: WCF Proxy Server settings not working
Path: TK2MSFTNGHUB02.phx.gblmicrosoft.public.dotnet.framework.aspnet.webservices:2729
Xref: TK2MSFTNGHUB02.phx.gbl
NNTP-Posting-Host: 10.201.220.210WebRequest.DefaultWebProxy
Hi Clint,
I've performed some further research on this issue and discussed with some
WCF dev engineers. Here are some further information we've got for your
information:
For WCF service, when we set the binding configuration as
"useDefaultWebProxy=true" such as:
==================
<binding name="BasicHttpBinding_IService" ................
useDefaultWebProxy="true">
==================
the WCF runtime will acquire proxy setting from
class.
And since this global setting is changable, you can manually assign a new
proxy for the defaultWebProxy property. e.g.
===================
WCFSVC.ServiceClient client = new ConsoleClient.WCFSVC.ServiceClient();
WebProxy wproxy = new WebProxy("new proxy",true);
wproxy.Credentials = CredentialCache.DefaultNetworkCredentials;
WebRequest.DefaultWebProxy = wproxy;
===================
here are some reference articles mentioned more info about the background
of the proxy settings in WCF:
#Configuration Http Proxies in WCF
http://kennyw.com/indigo/106
#Setting Credentials for your HTTP Proxy
http://kennyw.com/indigo/143
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Subject: RE: WCF Proxy Server settings not working
Date: Tue, 7 Oct 2008 08:48:01 -0700
with
Hi Steven,
Sorry for the late reply - I was out of the office the last few days.
I haven't tried this in our production environment yet, but I have little
doubt it will work, since this is just part of the overall solution, and
the application pool settings set correctly, the w3wp.exe process isrunning
under the internet access user, not an anonymous or machine user.password="password"/>
I'm not sure what's going on with Identity Impersonate, but I tried this:
<system.web>
<identity impersonate="true" userName="domain\login"
<authentication mode="Windows"/>more
<authorization>
<deny users="?"/>
</authorization>
</system.web>
in the "Research" service's web.config, and WindowsIdentity.GetCurrent()
still returned ASPNET. That leads me to believe that there's something
going on here than just WCF, but I don't know what. I've used that beforeand
had luck ...for
Regarding the processModel - changing that did work. I'll keep that set
now since I need to test this, but if you can find any answers regarding
passing the credentials through to WCF, I'd greatly appreciate it.
Thanks!
Clint
.
- Follow-Ups:
- RE: WCF Proxy Server settings not working
- From: Clint
- RE: WCF Proxy Server settings not working
- References:
- WCF Proxy Server settings not working
- From: Clint
- RE: WCF Proxy Server settings not working
- From: "Steven Cheng"
- RE: WCF Proxy Server settings not working
- From: Clint
- RE: WCF Proxy Server settings not working
- From: "Steven Cheng"
- RE: WCF Proxy Server settings not working
- From: Clint
- RE: WCF Proxy Server settings not working
- From: "Steven Cheng"
- RE: WCF Proxy Server settings not working
- From: Clint
- RE: WCF Proxy Server settings not working
- From: "Steven Cheng"
- WCF Proxy Server settings not working
- Prev by Date: IIS question
- Next by Date: How to securize a webservice with several criterias ?
- Previous by thread: RE: WCF Proxy Server settings not working
- Next by thread: RE: WCF Proxy Server settings not working
- Index(es):
Relevant Pages
|
Loading