views:

179

answers:

1

The problem with J2ME clients consuming ADO.NET Data Services (Astoria) is that there is no support for the PUT and DELETE verbs.

Using the WCF REST Starter kit one can intercept a request to a WCF service using a new ServiceHost that exposes a property called Interceptors which lets you intercept requests and responses. Since Astoria is built on WCF we're home free, right?

Wrong. This technique wont work since Astoria uses another ServiceHost implementation that derives from IDataServiceHost.

As I see it the options are:

  1. Wait for a new Astoria release
  2. Go raw WCF
  3. Custom HTTP implementation on J2ME.

Any suggestions?

+1  A: 

Hi Hans,
You can tunnel any verb to the Astoria Server via the X-Http-Method header in the payload.
We talk about this header in our protocol documentation on MSDN here and here

Phani Raj