ServicesResourcesConferencesOur TeamWeblogsAboutContact
   

Subscriptions

Post Categories

Affiliations

Archives

Hosting your HTTP-based Web Services on a mobile device, bug-fixed

Once upon a time I reported how you can offer HTTP-based Web Services on Windows CE-powered devices by leveraging the .NET Compact Framework. Now I was contacted by a reader of this blog who found a bug in the mobile web server mentioned and introduced in this MSDN article.

Project CompactListener
  Class HttpRequestExtractor
    Method ReadAvailableData
      Failure   read += ns.Read(buffer, 0, 1024);
      Fixed     read += ns.Read(buffer, read, 1024);

The problem is that big requests lead to an error as all previously read fragments got overwritten.

As a tip for debugging SOAP requests from client applications calling into the mobile web server I suggest to disable the default behavior when F5'ing into the Web Service client. The VsDebuggerCausalityData HTTP header gets added to the request and may blow the server (it is a looooong header) - as it does with the mobile web servicer from the article.

<configuration>
  <system.diagnostics>
    <switches>
      <add name="Remote.Disable"
       value="1" />
    </switches>
  </system.diagnostics>
</configuration>

Many thanks for reporting this goes to Sven.Hubert@aitag.com. Contact him for details.

posted on Wednesday, October 12, 2005 11:36 AM

# How To? Host Web Services on CE devices. @ Wednesday, March 01, 2006 6:53 AM


&quot;Noone wants to create a server farm on CE devices.&quot; That's what Frank Prengel said. But&amp;nbsp;I did!...
SvenH

# How To? Host Web Services on CE devices. @ Wednesday, March 01, 2006 7:35 PM


&quot;Noone wants to create a server farm on CE devices.&quot; That's what Frank Prengel said. But&amp;nbsp;I did!...
SvenH

# How To? Host Web Services on CE devices. @ Wednesday, March 01, 2006 7:38 PM

&quot;Noone wants to create a server farm on CE devices.&quot; That's what Frank Prengel said. But&amp;nbsp;I did! So I had to begin from the scratch...
SvenH

# china granite tiles @ Friday, January 04, 2008 8:19 AM


We deal with all the import and export business here. http://www.allystone.net/china-stone-product/Allystone-

about_us.html
http://www.allystone.net/china-stone-product/Bs_Products.asp
http://www.allystone.net/china-stone-product/Allystone-service.html
http://www.allystone.net/china-stone-product/Allystone-contactus.html
http://www.allystone.net/china-stone-product/Allystone-service.asp
http://www.xmaolei.com
http://www.allystone.cn
http://www.chinastone-sink.com
china granite tiles


Powered by Community Server, by Telligent Systems