RE: asp.net WS support for CF platforms

From: Ercan Turkarslan [MS] (a-ercant_at_microsoft.com)
Date: 03/23/04


Date: Tue, 23 Mar 2004 23:48:58 GMT

Hi Chuck,

I have investigated your issue and could not find any documentation
refering to ASP .NET WS Enhancements support for .NET CF.

If you do not want to use SSL, you may implement a custom form of channel
security when using XML Web Services by employing a SOAP extension. SOAP
pre and postprocessor provides extensibility to the normal ASP .NET
processing of a Web Service and can be used by both the Web application
hosting the Web Service in IIS and in the Compact Framework application
that consumes the Web Service on the device.

You can develop the extension by creating a class that inherits from the
SoapExtension class in the System.Web.Services.Protocols namespace. Within
in the class, you can override methods such as ProcessMessage and
ChainStream to inspect and alter the message, for example, to encrypt and
decrypt the body of a SOAP emssage by calling private methods in the class.

Encrypt/Decrypt is another story which you should be very careful. .NET CF
does not provide necessary methods for encryption/decryption. However you
can p/invoke down to Crypto API of Windows CE .NET. You should be very
careful while encrypting/decrypting as this process will be divided between
the desktop and the device. You should be using the same key, same key size
and same algorithms on both platforms. By default Pocket PC 2002 does not
support 128-bit encryption. If you are targeting both '02 and '03 devices,
you should better set your key size to 40-bits or install High Encryption
Pack to PPC 2002 devices.

Thanks

Ercan

Support Engineer

Microsoft Mobile Devices Division

Developer Support



Relevant Pages

  • RE: Web Services Toolkit - SOAP Toolkit
    ... and using managed Web service proxies. ... will continue to support Microsoft Office Web Service Toolkit. ... The following note is quoted from Microsoft Office 2003 Web Service Toolkit ... create a Shared Add-in project called WebAddin. ...
    (microsoft.public.office.developer.vba)
  • Re: Problems with namespaces
    ... \par application and web service. ... \par Simon ... the client-side proxy will also ... \par> Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Ex2007 EVS on Windows 2008
    ... if it's possible to query the requested encryption of a WMI namespace. ... If the WMI namespace to be queried is known ahead of time, ... Microsoft Online Community Support ... the authentication level to PKT_PRIVACY. ...
    (microsoft.public.win32.programmer.wmi)
  • RE: ASP.NET site hosted in File System problem
    ... It would be great if you could send me the web service project that can ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Problem solved
    ... am not using a beta of WSE 3; the file does already exist in my web service. ... I have no problems when I do this on a new simple web service project. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet.security)