473,396 Members | 1,998 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.

web service proxy authentication

Hi all
I have an application that seems to be having an ongoing battle with my
firewall.
I am using a webservice to send back data to a SQL server database. Betwen
the two machines is an ISA 2004 firewall.
The firewall is set up so that it only allows authenticated traffic (i.e.
Windows user based). I cannot seem to get past the proxy authentication
problems.
I have changed the web.config file, and this seems to make no difference.
Any ideas?

Thanks
Saira
Nov 23 '05 #1
1 5072
I haven't run a web service through ISA server, so I don't know if this is
all you need, but the basic things you need to do to pass the user identity
to the webservice are:

add <identity impersonate="true" /> to your web.config,
make sure that anonymous access is turned off,
and then, after instantiating your web service proxy, try adding the
following line:

myWSProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;

Hope this helps,

DalePres
MCAD, MCDBA, MCSE
"Saira" <Saira@Bayonet[NOSPAM]Ventures.com> wrote in message
news:eU**************@TK2MSFTNGP12.phx.gbl...
Hi all
I have an application that seems to be having an ongoing battle with my
firewall.
I am using a webservice to send back data to a SQL server database. Betwen
the two machines is an ISA 2004 firewall.
The firewall is set up so that it only allows authenticated traffic (i.e.
Windows user based). I cannot seem to get past the proxy authentication
problems.
I have changed the web.config file, and this seems to make no difference.
Any ideas?

Thanks
Saira

Nov 23 '05 #2

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

Similar topics

5
by: Farooque Khan | last post by:
Hi, I am consuing a web service in a VC7 application. I included the web service as a 'web reference' and calling it's method. Now I want my application to connect to the web service through a...
0
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...
3
by: Wild Wind | last post by:
Hello all, I apologise in advance for the long windedness of this post, but I feel that if I am going to get any solution to this problem, it is important that I present as much information...
0
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...
1
by: webserviceUser189 | last post by:
Hi, I'm trying to authenticate the user based on the credentials that I get from the client app, but I'm getting empty string as user name. Can somebody tell me if I'm doing anything wrong here....
0
by: Punit | last post by:
Hello, I have an unmanaged VC7 app (ActiveX control implemented using MFC) calling a C# dotnet service. I'm using the VS2003 generated proxy class derived from CSoapSocketClientT. The activeX...
0
by: Armin Prosch | last post by:
Hi, we call a web service in an intranet environment. The target host is bypassed as of the IE setting. We retrieve the system proxy settings through "myService.Proxy =...
3
by: =?Utf-8?B?RGFuZGFuIFpoYW5n?= | last post by:
Now I have a web application, a web service and a SQL Server database. The Web application will invoke the web service, the web service invokes the SQL Server stored procedure. I let the web...
10
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;...
4
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
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...
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...
0
agi2029
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,...

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.