Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / March 2008

Tip: Looking for answers? Try searching our database.

PPC 2003 web service proxy settings

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
davebythesea - 28 Mar 2008 18:06 GMT
Hi,

I have built an app in PPC 2003. It uses a web service to transfer data to
and forth. Sometimes the device is cradled via active sync and I can access
the web service via a proxy server. At other times I use the web service over
GPRS and no proxy settings are required to use the web service.

My question is - how can I determine when I should use the Proxy settings or
not?

Is there a way to determine if a device is using GPRS and to ignore the
Proxy settings?

Further, if a device is cradled at a different location which requires
different proxy settings how can these be past to the web service
automatically?

The first time I launch Internet Explorer from the PDA when it is cradled it
automatically asks for Proxy Settings. Are these cached locally on a device
somewhere ?

thanks for any tips

David
Simon Hart [MVP] - 30 Mar 2008 20:31 GMT
The easiest solution is to check if you are connected via ActiveSync, on PPC
2003 you can try to resolve ppp_peer. If this succeeds then you're connected,
otherwise assume GPRS, in this case use connection manager or try to ping a
known server.

There is no way of assuming whether a proxy server is required or not, this
is business level design - at least, that I know of.

Don't understand what you mean by this comment:
> Further, if a device is cradled at a different location which requires
> different proxy settings how can these be past to the web service
> automatically?

The only way this can be done "automagically" is to add proxy settings to
the connection profile so when connection manager connects it uses these
proxy settings, so maybe a separate connection profile would be needed for
site X... you can set these proxy settings using the CSP (configuration
server providers).
Signature

Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com

> Hi,
>
[quoted text clipped - 20 lines]
>
> David
davebythesea - 31 Mar 2008 10:23 GMT
Hi Simon,

Thanks for your reply. Yes I agree it is impossible to determine the Proxy
settings for other networks and use these magically within the app. Like you
say it is a business level design if other Proxy settings are to be used and
included. Right now I have included the ability to use one proxy and to turn
it on or off. The main reason is that where the app is being developed uses a
Proxy server and I've had to configure the app for this. But is likely that
the app will not use a Proxy server when in use, but not guaranteed I guess?
And if they use the app in locations that require different proxy's well...!!
One proxy, with the ability to turn on or off, I will stick with that for the
moment.

Cheers!
Dav

> The easiest solution is to check if you are connected via ActiveSync, on PPC
> 2003 you can try to resolve ppp_peer. If this succeeds then you're connected,
[quoted text clipped - 39 lines]
> >
> > David

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.