WCFサービスから、AndroidをクライアントとしてDateTime(Joda DateTime)でフィルタリングされているオブジェクトのリストを取得しようとしています。リクエストを行うためにJsonとRESTを使用しています。
日時の値をパラメーターとして渡すにはどうすればよいですか?
何かのようなもの:
HttpPost request = new HttpPost( SERVICE_URI + "/GetScheduleEntrysByDate/" + date.toString());
この:
[OperationContract]
[WebInvoke(Method = "POST",
UriTemplate = "GetScheduleEntrysByDate/{date}",
BodyStyle = WebMessageBodyStyle.WrappedRequest,
ResponseFormat = WebMessageFormat.Json,
RequestFormat = WebMessageFormat.Json)]
List<ScheduleEntry> GetScheduleEntrysByDate(DateTime date);