Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > web service wants proxy authentication

Reply
Thread Tools

web service wants proxy authentication

 
 
Chris Podmore
Guest
Posts: n/a
 
      05-05-2004
I have a web service running on my PC that I want to access from a Pocket PC (Compact Framework) connected to my machine using ActiveSync. I can access the web service from the emulator no problem but when I try the same application on the Pocket PC I get “The remote server returned an error: (407) Proxy Authentication Required”

The application has the ability to change the IP address of the web service, as the customer’s machines will obviously have different IP addresses to us

The application will need to access the web service either ActiveSync, GPRS, RAS, WiFi

I have tried

Dim wp As New System.Net.WebProx
'wp.Address = New Uri("http://acssbs1:8080"
wp.Address = New Uri("http://999.999.99.9:8080"
wp.BypassProxyOnLocal = Tru
wp.Credentials = New System.Net.NetworkCredential("chrisp", "**********", "domain"
ws.Proxy = w

But this doesn’t work as it still reports the error

Any help will be much appreciated
Thanks in advance
Chris

 
Reply With Quote
 
 
 
 
[MSFT]
Guest
Posts: n/a
 
      05-06-2004
Hi Chris,

Thank you for posting. Regarding the issue, we are trying to find proper
resource to assist you and will update you as soon as possible.

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

 
Reply With Quote
 
 
 
 
Reggie Joy
Guest
Posts: n/a
 
      05-08-2004
Hi Chris,

As I understand this -
If you create a simple Web Service on the desktop PC with one method, then
create a Smart Device application that consumes that Web Service by calling
the method, deploy it to your Pocket PC device connected over Activesync,
it gives you a "(407) Proxy Authentication Required" on the device. If you
run the same on a Pocket PC emulator, it works as expected.

Is your Pocket PC connected over USB or Ethernet to your desktop PC? And
does your local network have a secure proxy? With the code that sets the
username and password for the secure proxy, are you able to connect
successfully from the emulator?

Rajat
DSW - Mobile Devices

--------------------
| Thread-Topic: web service wants proxy authentication
| thread-index: AcQyeTx1m2jFKjdCRQGJZ//jzAlPuQ==
| X-WN-Post: microsoft.public.dotnet.framework.aspnet.webservic es
| From: "=?Utf-8?B?Q2hyaXMgUG9kbW9yZQ==?=" <(E-Mail Removed)>
| Subject: web service wants proxy authentication
| Date: Wed, 5 May 2004 01:16:16 -0700
| Lines: 21
| Message-ID: <(E-Mail Removed)>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 8bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
| Path: cpmsftngxa10.phx.gbl
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservic es:23671
| NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
|
| I have a web service running on my PC that I want to access from a Pocket
PC (Compact Framework) connected to my machine using ActiveSync. I can
access the web service from the emulator no problem but when I try the same
application on the Pocket PC I get “The remote server returned an error:
(407) Proxy Authentication Required”.

The application has the ability to change the IP address of the web
service, as the customer’s machines will obviously have different IP
addresses to us.

The application will need to access the web service either ActiveSync,
GPRS, RAS, WiFi.

I have tried:

Dim wp As New System.Net.WebProxy
'wp.Address = New Uri("http://acssbs1:8080")
wp.Address = New Uri("http://999.999.99.9:8080")
wp.BypassProxyOnLocal = True
wp.Credentials = New System.Net.NetworkCredential("chrisp", "**********",
"domain")
ws.Proxy = wp

But this doesn’t work as it still reports the error.

Any help will be much appreciated.
Thanks in advance.
Chris.

|

 
Reply With Quote
 
Chris Podmore
Guest
Posts: n/a
 
      05-10-2004
Reggie

Thanks for the reply. The emulator works fine, connects and retrieves data without a problem. Unfortunately my Pocket PC (iPAQ 3760) uses a serial cradle, I don’t have a USB one. Could this be the problem? I didn’t think there was a difference connecting via ActiveSync using serial or USB, apart from the speed obviously

I haven’t installed SP2 yet, I’m still using what came with VS.NET 2003. Don’t know if this will make a difference or not

Chris.
 
Reply With Quote
 
Rajat Joy
Guest
Posts: n/a
 
      05-11-2004
Hi Chris,

There should be no difference between using USB or Serial connections. In
asking the question, my intention was to see if you were using an ethernet
connection that needed to go through a secure proxy to reach your web
server.

Please do try with .NET CF SP2, as it resolves several other issues.

Here are a few things you should check -

You should have basic or digest authentication as the mechanism for
authentication on the IIS server on your desktop PC that hosts your Web
Service.

Can you reproduce the problem if you create a simple Web Service containing
a single method on your desktop PC, disconnect the PC from the network,
install Microsoft Loopback Adapter, then consume the Web Service from your
Pocket PC device connected over Activesync?

I understand that the problem may be caused by factors specific to your
network environment. However, it would be nice to see a minimal
reproducible sample that we can test with different network configurations
at our end.

Thanks
Rajat

DSW-Mobile Devices

This posting is provided "AS IS", with no warranties, and confers no rights.

--------------------
| Thread-Topic: web service wants proxy authentication
| thread-index: AcQ2YA1ZCskhbrQ0SsCv3pDwdVMc5g==
| X-WN-Post: microsoft.public.dotnet.framework.aspnet.webservic es
| From: "=?Utf-8?B?Q2hyaXMgUG9kbW9yZQ==?=" <(E-Mail Removed)>
| References: <(E-Mail Removed)>
<(E-Mail Removed)>
| Subject: RE: web service wants proxy authentication
| Date: Mon, 10 May 2004 00:26:04 -0700
| Lines: 7
| Message-ID: <(E-Mail Removed)>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 8bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
| Path: cpmsftngxa10.phx.gbl
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservic es:23771
| NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
|
| Reggie,

Thanks for the reply. The emulator works fine, connects and retrieves data
without a problem. Unfortunately my Pocket PC (iPAQ 3760) uses a serial
cradle, I don’t have a USB one. Could this be the problem? I didn’t
think there was a difference connecting via ActiveSync using serial or USB,
apart from the speed obviously.

I haven’t installed SP2 yet, I’m still using what came with VS.NET
2003. Don’t know if this will make a difference or not.

Chris.
|

 
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
Call Web Service using proxy and http authentication wdveloper Python 4 05-15-2009 04:13 AM
New Web Proxy List - View Restricted Content with web proxy melati1979@gmail.com Cisco 1 02-25-2009 08:51 PM
SSL Web Service Proxy Authentication Toby ASP .Net Web Services 3 02-27-2005 08:11 PM
407:Proxy authentication error while try to access Web Service published on internet Nuzhat Parveen via .NET 247 ASP .Net Web Services 2 07-05-2004 11:38 PM
Accessing Windows integrated authentication with web service proxy Frank ASP .Net Web Services 0 11-26-2003 03:36 AM



Advertisments