RE: WCF Proxy Server settings not working



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.gbl
Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:2729
NNTP-Posting-Host: 10.201.220.210

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
WebRequest.DefaultWebProxy
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


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
with
the application pool settings set correctly, the w3wp.exe process is
running
under the internet access user, not an anonymous or machine user.

I'm not sure what's going on with Identity Impersonate, but I tried this:

<system.web>
<identity impersonate="true" userName="domain\login"
password="password"/>
<authentication mode="Windows"/>
<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
more
going on here than just WCF, but I don't know what. I've used that before
and
had luck ...

Regarding the processModel - changing that did work. I'll keep that set
for
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




.



Relevant Pages

  • RE: WCF Proxy Server settings not working
    ... Microsoft MSDN Online Support Lead ... You can send feedback directly to my manager at: ... WCF Proxy Server settings not working ... WCF dev engineers. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: WCF Client Generation Issue
    ... \par BTW, for your further comments about the WCF document and reference resources, I agree that for some specific topcs or features, the related information is not quite sufficient and centralized that make it a bit difficult to locate. ... \par that library in the service and proxy projects). ... \par> complex type in your WCF service side, it will automatically create a proxy ... \par> The generated ListEquipmentResponse looks like ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: Soap class definition question
    ... Yes, for the "standard webservce" proxy, it hasn't provided support on ... reusing typeslike what WCF ... its autogenerated one to your shared common types. ...
    (microsoft.public.dotnet.xml)
  • RE: Using WCF Services from 2.0 programs
    ... As for the signature of the auto-generated webservice proxy, ... in WCF use binary format by default. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: Need to set username and password in web.config for ISA Proxy for WCF client
    ... And since the WCF ... service is accessed through a ISA proxy, ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet.webservices)

Loading