473,396 Members | 1,849 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

WCF Client Behind ISA Proxy: HTTP Error 407

Situation:

We have to connect to a 3rd party XML Web Service outside our LAN by
adding a WCF Service Reference to a simple console application

Problem:

When attempting to invoke any of the generated client class methods,
we recieve the following error: "The remote server returned an
unexpected response: (407) Proxy Authentication Required ( The ISA
Server requires authorization to fulfill the request. Access to the
Web Proxy service is denied. )."

In old style ASMX Web Reference:

TheServiceWse client = new TheServiceWse();

client.Proxy = new System.Net.WebProxy("ISA Server Name", 800);

client.Proxy.Credentials =
System.Net.CredentialCache.DefaultCredentials;

Where client is an instance of the generated Web Reference Proxy Class

However in WCF Service Reference:

I am not sure where to define the credentials of the user to pass
through the ISA server successfully. I've looked into the WCF Service
Configuration Editor, opened the app.Config file of my console
application, checked the following configurations but it didn't
succeed:

Bindings node -MyServicePort (basicHttpBinding) node -Binding tab -
ProxyAddress = <empty>
Bindings node -MyServicePort (basicHttpBinding) node -Binding tab -
UseDefaultWebProxy = True
Bindings node -MyServicePort (basicHttpBinding) node -Security tab
-Mode = None

Bindings node -MyServicePort (basicHttpBinding) node -Security tab
-ProxyCredentialType = Windows

Bindings node -MyServicePort (basicHttpBinding) node -Security tab
- TransportClientCredentialType = Windows

TheServicePortClient client = new TheServicePortClient();

In this client instance, there is no proxy property that i can set or
set its credentials

Any advice is highly appreciated amigos

Jan 31 '07 #1
1 15095
Situation:

We have to connect to a 3rd party XML Web Service outside our LAN by
adding a WCF Service Reference to a simple console application

Problem:

When attempting to invoke any of the generated client class methods,
we recieve the following error: "The remote server returned an
unexpected response: (407) Proxy Authentication Required ( The ISA
Server requires authorization to fulfill the request. Access to the
Web Proxy service is denied. )."

In old style ASMX Web Reference:

TheServiceWse client = new TheServiceWse();

client.Proxy = new System.Net.WebProxy("ISA Server Name", 800);

client.Proxy.Credentials =
System.Net.CredentialCache.DefaultCredentials;

Where client is an instance of the generated Web Reference Proxy Class

However in WCF Service Reference:

I am not sure where to define the credentials of the user to pass
through the ISA server successfully. I've looked into the WCF Service
Configuration Editor, opened the app.Config file of my console
application, checked the following configurations but it didn't
succeed:

Bindings node -MyServicePort (basicHttpBinding) node -Binding tab -
ProxyAddress = <empty>

Bindings node -MyServicePort (basicHttpBinding) node -Binding tab -
UseDefaultWebProxy = True

Bindings node -MyServicePort (basicHttpBinding) node -Security tab
-Mode = None

Bindings node -MyServicePort (basicHttpBinding) node -Security tab
-ProxyCredentialType = Windows

Bindings node -MyServicePort (basicHttpBinding) node -Security tab
- TransportClientCredentialType = Windows

TheServicePortClient client = new TheServicePortClient();

In this client instance, there is no proxy property that i can set or
set its credentials

Any advice is highly appreciated amigos
Have you found any answer to this problem?
It's almost unbeliveable... It seems it's also impossible to access WPF/XBAP through proxy (which needs extra credentials..)

Thanks.

BizTalk Utilities - Frustration free BizTalk Adapters
http://www.topxml.com/biztalkutilities
May 3 '07 #2

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

Similar topics

0
by: microsoft.public.dotnet.languages.csharp | last post by:
Hi all I have a winform application (client) calling a webservice (both written in C#). Everything works fine if the winform has internet connection and not residing behind a proxy server. Or...
1
by: rawCoder | last post by:
Hi, How does WS Eventing works around the problem of the subscriber client being a Winform Application and behind firewall / Proxy server? In Other Words ... If I have a Windows Form...
7
by: Nalaka | last post by:
Hi, I created a sinple web service that returns a dataSet. Then I created a client program that uses this web service (that returns the Dataset). My question is, how did the client figure...
5
by: james.dixon | last post by:
Hi I have been struggling with what should be a simple thing. I want to crawl the web for specific links, and save any html and files that meet my criteria to my hard drive. I thought that...
22
by: Dan Rumney | last post by:
Hi all, I've been writing Javascript for quite a while now and have, of late, been writing quite a lot of AJAX and AJAX-related code. In the main, my dynamically generated pages are created...
3
by: Lance Wynn | last post by:
Hello, I am receiving this error when trying to instantiate a webservice component. I have 2 development machines, both are XP sp2 with VS 2008 installed. On one machine, the code works fine. On...
0
by: Gustavo Rahal | last post by:
Hi I'm trying to build a xmlrpc client that uses a proxy to connect to a xmlrpc server in https. I've googled and came up with a code snippet that doesn't actually work. What is missing?
5
by: =?Utf-8?B?TWFyaw==?= | last post by:
I'm researching what is the best way to create a generic WCF proxy wrapper that has the following requirements: 1. Remove the System.ServiceModel config section requirement for clients. We have...
15
by: Mike | last post by:
Hi ASP Gurus, Please help me solving my problem. I am trying to get the clients IP address but I am not able to do it successfully. I have tried: Request.ServerVariables("http_user_agent")...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...

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.