473,394 Members | 1,765 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,394 software developers and data experts.

How to Obtains Default User or System Credentials for a Web Services Proxy running behind the Firewall

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

..Proxy = System.Net.WebRequest.DefaultWebProxy()

..Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials()

End With

' Now submit request to the server.

Try

' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *

'

' 1. The line below will succeeded to send request to the Web Svr if

' I'm outside the Firewall, in public Internet.

'

' 2. However, If I'm inside of the Firewall and already authenticated with

' the Corporate domain, it will Throw exception because of the
Firewall credential.

' System.Net.CredentialCache.DefaultCredentials() always blank

' Domain, UserName, Password etc...

'

' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *

lds_WebService.SubmitRequest("MyObject")

' Do other things.....

' Catch exception .

Catch Epx As Exception

Throw New Exception(Exp.Message)

End Try

My question is what is the appropriate way to get the default user
credentials that are compatible to use inside/outside the Firewall?

Any assistance is highly appreciated and thank for you time.

Ndskim.
Mar 8 '07 #1
0 1501

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

Similar topics

15
by: Sims | last post by:
Hi, I have a service that need to access the current user registry from time to time. But a service only works as a SYSTEM and not as the current user. How can i change that? Or at the very...
0
by: Steve Ng | last post by:
Hello, I have a windows form application that needs to pass through a proxy to get access to the internet. As a test, I have successfully hardcoded my login/password/domain combination and been...
8
by: Pete Wittig | last post by:
Hello, I am wondering if it is possible to create a networked application with C# that is seen as a windows user. For example, if Bob logged onto windows and then started the application, any...
3
by: Wild Wind | last post by:
Hello, I have an application which calls a web service across the Internet from a client machine. The site that I have deployed the application to is such that to browse the Internet using a...
1
by: SrDhUS | last post by:
I get the following error when I try to add a web reference using Web Reference Dialog (VS .Net 2003) Error "The proxy settings on this computer are not configured correctly for web discovery."...
1
by: TrinityPete | last post by:
Hi all, I have a little problem that is really bugging me. I have a windows forms application that calls a web service (VS2005 and Framework 2). As part of the call to the web service I set the...
0
by: exits funnel | last post by:
Hello, I apologize if this question is a bit vague and slightly off topic but I couldn't find an Analysis Services and/or ODBO specific newsgroup. In any event, I'm trying to address an issue...
18
by: Arthur | last post by:
Hi All, I would like to get the name of the user given their networkID, is this something Active Directory would be useful for?(For intranet users) If so, can you please point me to some sample...
2
by: GaryDean | last post by:
We were calling out to a web service just fine before we put our server behind a firewall. Now we can't call out. Port 80 is open in the firewall. What ports need to be open? -- Regards, Gary
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
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,...
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...

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.