Отправка JSONArray в службу WCF с Android

У меня возникают проблемы при публикации JSONArray значений в моей службе WCF. Когда я отправляю данные из Fiddler или .Net Test Client, все работает нормально. Каждый раз, когда я пытаюсь отправить сообщение из своего приложения для Android, я получаю ошибку запроса

Это данные JSON, которые я отправляю в службу WCF из приложения Android. Я'Я попробовал эти точные данные от Fiddler, и это работает

[{"date":"2013-02-22 15:30:374:021","id":"1","description":"test","name":"test"},
"date":"2013-02-25 11:56:926:020","id":"2","description":"ghy","name":"fhh"},
"date":"2013-02-25 11:56:248:026","id":"3","description":"ghfm","name":"run"}]

Мой код андроида

public JSONObject makeHttpPost(String url, String method, JSONArray params) {
    try {

        if (method == "POST") {

            DefaultHttpClient httpClient = new DefaultHttpClient();
            HttpPost httpPost = new HttpPost(url);
             httpPost.setHeader("Accept", "application/json");
             httpPost.setHeader("Content-Type",
             "application/json; charset=utf-8");
             StringEntity se = new StringEntity(params.toString(),"UTF-8");

             se.setContentType("application/json;charset=UTF-8");
             httpPost.setEntity(se);

            Log.e("Gerhard", params.toString());
            HttpResponse httpResponse = httpClient.execute(httpPost);
            HttpEntity httpEntity = httpResponse.getEntity();
            is = httpEntity.getContent();



        }

    } catch (UnsupportedEncodingException e) {
        e.printStackTrace();
    } catch (ClientProtocolException e) {
        e.printStackTrace();
    } catch (IOException e) {
        e.printStackTrace();
    }

Мой WCF Сервис

[OperationContract]
    [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, UriTemplate = "updateOrderAddress")]
    String UpdateOrderAddress(Stream JSONdataStream);

public String UpdateOrderAddress(Stream JSONdataStream)
    {
        try
        {
            // Read in our Stream into a string...
            StreamReader reader = new StreamReader(JSONdataStream);
            string JSONdata = reader.ReadToEnd();

            // ..then convert the string into a single "wsOrder" record.

            if (JSONdata == null)
            {
                // Error: Couldn't deserialize our JSON string into a "wsOrder" object.
                return "null";
            }



            return JSONdata;     // Success !
        }
        catch (Exception e)
        {
            return e.ToString();
        }
    }

Ошибка яя получаю

02-26 14:00:56.185: E/Gerhard(31064):       <p>The server encountered an error processing the request. The exception message is 'Incoming message for operation 'UpdateOrderAddress' (contract 'IService1' with namespace 'http://tempuri.org/') contains an unrecognized http body format value 'Json'. The expected body format value is 'Raw'. This can be because a WebContentTypeMapper has not been configured on the binding. See the documentation of WebContentTypeMapper for more details.'. See server logs for more details. The exception stack trace is: </p>

Я вызвал несколько запросов GET от приложения Android к одной и той же службе WCF, и она прекрасно работает, но теперь мне нужно отправить массив данных в службу wcf. Пожалуйста, пожалуйста, помогите мне. Спасибо заранее

Ответы на вопрос(1)

Ваш ответ на вопрос