Solved

problem in using webservice through an ISA  proxy server

Posted on 2004-10-10
3
288 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 51

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Purpose To explain how to place a textual stamp on a PDF document.  This is commonly referred to as an annotation, or possibly a watermark, but a watermark is generally different in that it is somewhat translucent.  Watermark’s may be text or graph…
This is an explanation of a simple data model to help parse a JSON feed
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now