Solved

problem in using webservice through an ISA  proxy server

Posted on 2004-10-10
3
294 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 58

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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Simple Linear Regression
Six Sigma Control Plans

634 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