WebServices and Session support

  • Thread starter Thread starter Federico Punzo
  • Start date Start date
F

Federico Punzo

Hi!
I'm about to migrate some web services client code from the desktop to one
of our CF apps.
Thing is, some of our web services keep session data, and so the cookie they
return when called
needs to be persisted.
However, there is no CookieContainer for the CF version of the web proxy
class (from SoapHttpClientProtocol).

Is there any way to invoke these web services and persist the session cookie
between calls?

TAL,

Federico Punzo
 
It's mentioned briefly in the help, but you have to create your own
persistence mechanism. Have you looked into the details of that at all?
I'm afraid that I don't know much about it, except that it's there (MSDN, I
think).

Paul T.
 
I was unsuccessfull in trying to do this. It seems that there are simply
more unimplemented or hidden bits in the SoapHttpClientProtocol than one can
get around. The whole creation of the HttpWebRequest, sending it and
processing result is hidden inside one large function
SoapHttpClientProtocol::doInvoke. There are no places where one could hope
to intercept it...
 
service pack 1 will let you do it ...
http://www.devbuzz.com/content/zinc_smartphone_compactframework_pg3.asp
the only trick is compiling for the methods we can now override.
what i did was install the smartphone 2003 sdk,
then copy the system.web.services.dll from:
C:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE\Smartphone
to:
C:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE
and then you can compile it to deploy to CE and PPC devices with SP1.
casey
 
Oh, interesting. Thanks, Casey

casey chesnut said:
service pack 1 will let you do it ...
http://www.devbuzz.com/content/zinc_smartphone_compactframework_pg3.asp
the only trick is compiling for the methods we can now override.
what i did was install the smartphone 2003 sdk,
then copy the system.web.services.dll from:
C:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE\Smartphone
to:
C:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE
and then you can compile it to deploy to CE and PPC devices with SP1.
casey
 
Back
Top