Solved

problem in using webservice through an ISA  proxy server

Posted on 2004-10-10
3
290 Views
Last Modified: 2010-04-17
Hi,

I am accessing webservice through an ISA  proxy server using basic and integrated authentication.

This is the code i am using.

Dim Result As New Validatekey.Validation
Result.Url = "http://venus/Validation.asmx"

Dim mproXy As WebProxy
mproXy = New WebProxy("http://inet:8080, True)
mproXy.Credentials = New System.Net.NetworkCredential("anish","anish","inetwork")
Result.Proxy = mproXy
dim abc=Result.keyValidate()

Result.keyValidate() is a webservice call which returns a result.

This works fine. but if i change the line below

mproXy = New WebProxy("http://inet:8080, True)
to
mproXy = New WebProxy("http://192.168.0.1:8080, True)

it gives the following error
==============================================================================
The request failed with HTTP status 407: Proxy Authentication Required (The ISA Server requires authorization to fulfill the request. Access to Web Proxy service is denied. ).
==============================================================================

Only thing i am changins is passing ip address of the proxy server instead of proxy server name.

Guys please help.
0
Comment
Question by:inetworks
3 Comments
 
LVL 54

Accepted Solution

by:
Julian Hansen earned 500 total points
ID: 12274464
I am not sure but it might be because of the way your web server is setup. If you have multiple sites running on the same server then the IP address will take you to the default site whereas if you use inet IIS looks in the http request header for the domain name used and maps that to a list of web sites served on the server.

To verify this open your browser and try to browse to

http://192.168.0.1:8080

and see what happens. If you are prompted for a login to the proxy try the "anish", "anish", "inetwork" above and see if it gives you access - if it does not then you will not be able to access the webservice from your app with the above credentials.

If you do manage to authenticate - check to make sure you are going to the correct web site and that your webservice is visible / accessible on the IP address.

0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question