Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Access web service through proxy server

Reply
Thread Tools

Access web service through proxy server

 
 
Get modulus exponent from X509 cetificat
Guest
Posts: n/a
 
      10-10-2006
Hello,

I am trying to access one web service (on machine A) from machine B using
web application. I can browse the web service from web browser. But when I
access the web service from application, sometimes(80%) it crashed with the
error saying: "Redirect (authentication_redirect_to_virtual_host), You are
being redirected to the authentication virtual host, For assistance, contact
your network support team." But sometimes (20%) it is successful. I am
SUSPECTING that I need pass through proxy server, because there is one proxy
server between machine A and B. So my questions are:

1. Is this because of proxy server?
2. If yes, Do I have to use WSE to pass through proxy server? I am trying to
use HttpWebRequest and WebProxy, it does not work.

Thank you very much in advance.

Grace



 
Reply With Quote
 
 
 
 
John Saunders
Guest
Posts: n/a
 
      10-10-2006
"Get modulus exponent from X509 cetificat"
< icrosoft.com> wrote in
message news:26035DE7-A9C6-429D-AC81-...
> Hello,
>
> I am trying to access one web service (on machine A) from machine B using
> web application. I can browse the web service from web browser. But when I
> access the web service from application, sometimes(80%) it crashed with
> the
> error saying: "Redirect (authentication_redirect_to_virtual_host), You are
> being redirected to the authentication virtual host, For assistance,
> contact
> your network support team."


What did your network support team say when you asked them?

John


 
Reply With Quote
 
 
 
 
Get modulus exponent from X509 cetificat
Guest
Posts: n/a
 
      10-10-2006

Thanks for your response, John.
My network team say that might be proxy problem. Right now, I am using this
code:

// get web service instance
private crossroads.CaasServices CaasServices = new
Crossroads1.crossroads.CaasServices();

int port = 8080;
WebProxy proxy=new WebProxy("proxy", port);
//proxy.Credentials = new NetworkCredential("username", "password");
proxy.Credentials = CredentialCache.DefaultCredentials;
CaasServices.Proxy = proxy;

//call web service method
bool isValid = CaasServices.IsAuthorized(appID, user, role, auth);

When I use CredentialCache.DefaultCredentials, it gave me error: The request
failed with HTTP status 407: Proxy Authentication Required ( The ISA Server
requires authorization to fulfill the request. Access to the Web Proxy
service is denied. ).

When I use new NetworkCredential("username", "password"); it gave me time
out error.


Any further suggestion please?

Thanks,

Grace
"John Saunders" wrote:

> "Get modulus exponent from X509 cetificat"
> < icrosoft.com> wrote in
> message news:26035DE7-A9C6-429D-AC81-...
> > Hello,
> >
> > I am trying to access one web service (on machine A) from machine B using
> > web application. I can browse the web service from web browser. But when I
> > access the web service from application, sometimes(80%) it crashed with
> > the
> > error saying: "Redirect (authentication_redirect_to_virtual_host), You are
> > being redirected to the authentication virtual host, For assistance,
> > contact
> > your network support team."

>
> What did your network support team say when you asked them?
>
> John
>
>
>

 
Reply With Quote
 
John Saunders
Guest
Posts: n/a
 
      10-11-2006
"Get modulus exponent from X509 cetificat"
< icrosoft.com> wrote in
message news:4147B87A-DC76-4B22-B3A1-...
>
> Thanks for your response, John.
> My network team say that might be proxy problem. Right now, I am using
> this
> code:
>
> // get web service instance
> private crossroads.CaasServices CaasServices = new
> Crossroads1.crossroads.CaasServices();
>
> int port = 8080;
> WebProxy proxy=new WebProxy("proxy", port);
> //proxy.Credentials = new NetworkCredential("username", "password");
> proxy.Credentials = CredentialCache.DefaultCredentials;
> CaasServices.Proxy = proxy;
>
> //call web service method
> bool isValid = CaasServices.IsAuthorized(appID, user, role, auth);
>
> When I use CredentialCache.DefaultCredentials, it gave me error: The
> request
> failed with HTTP status 407: Proxy Authentication Required ( The ISA
> Server
> requires authorization to fulfill the request. Access to the Web Proxy
> service is denied. ).
>
> When I use new NetworkCredential("username", "password"); it gave me time
> out error.


Are you saying that when you pass the correct username and password you get
a timeout?

Can you determine whether the web service is receiving your call? If so,
then perhaps it is receiving the call, but the proxy service is eating the
response, causing your timeout.

John


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New Web Proxy List - View Restricted Content with web proxy melati1979@gmail.com Cisco 1 02-25-2009 08:51 PM
How to Accessing a Web Service Through a Proxy Server? mizi ASP General 1 07-24-2006 06:32 AM
Access ftp-server through proxy Kristian Sørensen Ruby 8 11-18-2003 10:43 PM
CSoapSocketClientT and HTTP: 407 Access Denied error through Proxy Server Dave Langley ASP .Net Web Services 4 09-04-2003 08:25 PM
Unable to access properties file from an applet through a proxy server Sudipto Dey Java 0 07-24-2003 08:54 AM



Advertisments