WebRequest Methods

F

Fred Chateau

Does Compact Framework have WebRequest methods, such as HTTPWebRequest and
HTTPWebResponse? If not, how do I talk to a Web Service that doesn't use
standard SOAP protocols?

Also, is there an easy way to separate the documentation for Compact
Framework in Visual Studio, so that you are not sorting through all the
Framework methods that don't apply.
 
P

Peter Foot [MVP]

Yes it does have HttpWebRequest, but not FtpWebRequest. If you want an
example of a non-soap web service I did some work on the Facebook Developer
Toolkit to add .NETCF support:-
http://www.codeplex.com/FacebookToolkit/

There isn't really a way to filter out the .NETCF only documentation.
However all the supported classes and methods etc should be marked with a
PDA icon when they are supported on devices.

Peter
 
F

Fred Chateau

Peter Foot said:
Yes it does have HttpWebRequest, but not FtpWebRequest. If you want an
example of a non-soap web service I did some work on the Facebook
Developer Toolkit to add .NETCF support:-
http://www.codeplex.com/FacebookToolkit/

There isn't really a way to filter out the .NETCF only documentation.
However all the supported classes and methods etc should be marked with a
PDA icon when they are supported on devices.

Please excuse my thorough confusion, but this is my first mobile
application.

When I set up a mobile device application in Visual Studio, I get a subset
of Framework assemblies to choose from. I'm assuming this is because the
only assemblies that appear are the Compact Framework assemblies.

There is no System.Net namespace, so how do I reference the proper assembly
containing HTTPWebRequest?

In addition, when I enter HTTPWebRequest in the index for Visual Studio
documentation I get the .NET Framework System.Net namespace, nothing about
Compact Framework.

Obviously I'm missing something here...
 
G

Guest

The System.Net set of classes are linked to System.dll.

As Peter said, there is no separate documentation for Compact Framework
classes. Both the desktop and compact framework share the same documentation.

See here:
http://msdn2.microsoft.com/en-us/library/system.net.httpwebrequest.aspx

You will see at the bottom of the page a section labeled "Version
information". This is where it will tell you what .NET platforms the
particular class is supported on. Likewise, all members will list a PDA icon
if supported on the CF. When clicking the member, it will document all
overloads and whether the overload in question is supported on the CF.

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

Fred Chateau

Sorry. For some reason, I expected to find something at the top of the page.

Thank you.

--
Regards,

Fred Chateau
fchateauAtComcastDotNet
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top