Take the 2-minute tour ×  How do I invoke a Service Operation in
WCF from iOS?  I have a Service Operation defined in my WCF Data
Service (tied to a stored procedure in my DB schema) that I need
to invoke from iOS. Say I've got the following declaration in my
.svc.cs file:  [WebInvoke(RequestFormat = WebMessageFormat.Json,
ResponseFormat = WebMessageFormat.Json, BodyStyle =
WebMessageBodyStyle.WrappedRequest)] public IQueryable<Foo>
GetFoos(int param1, DateTime param2, string param3)   return
CurrentDataSource.GetFoos(param1, param2, param3).AsQueryable();
And I've got it set up with the proper rights in
InitializeService:
config.SetServiceOperationAccessRule("GetFoos",
ServiceOperationRights.AllRead);  When I try to invoke this via
HTTP POST from iOS, I get back an error wrapped in JSON:  Bad
Request - Error in query syntax.  It seems like it doesn't like
how I'm passing my parameters. I'm passing them JSON-encoded
(using NSJSONSerialization to turn an NSDictionary into a JSON
string) in the request body o