Cómo hacer la solicitud de correo de jabón utilizando la biblioteca Volley en Android

Quiero hacer para hacer la solicitud de correo de jabón utilizando la biblioteca Volley. Estoy utilizando el código siguiente y tengo el error "HTTP / 1.1 400 Bad Request". En anterior estoy usando la biblioteca de jabón que trabaja muy bien pero necesito hacer la petición usando la biblioteca de Volley. Estoy usando la URL siguiente " http://test.com/TestApp/Services/service.asmx?op=ForgotPassword "

public void forgotPassword(final String userName,String url) { StringRequest sr = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() { @Override public void onResponse(String response) { Toast.makeText(mContext, "Success" + response, Toast.LENGTH_SHORT).show(); } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { showResponse(error); } }) { @Override protected Map<String, String> getParams() { Map<String, String> params = new HashMap<String, String>(); params.put("Email", userName); params.put("Language", "en"); return params; } @Override public Map<String, String> getHeaders() throws AuthFailureError { Map<String, String> params = new HashMap<String, String>(); params.put("Content-Type", "application/x-www-form-urlencoded"); params.put("Content-Length", "length"); return params; } }; Application.getInstance().getRequestQueue().add(sr); } 

Por favor, ayúdame a hacer la solicitud de jabón post con volea.

FlipAndroid es un fan de Google para Android, Todo sobre Android Phones, Android Wear, Android Dev y Aplicaciones para Android Aplicaciones.