Solved

problem in using webservice through an ISA  proxy server

Posted on 2004-10-10
3
293 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 57

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Regular Expression Calculator Tester 2 99
VbScript to countdown to New Year's Day 6 94
How to Convert a Quote to an Order in SalesForce 2 160
learn programming 8 94
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

738 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