Hi,
I am trying to update a record by sending parameters to a Webservice. When 
I run it it returns the code 400 (Bad Request).
The method used is the following:
    public static Response aceptarCarga(Long cargaId, Long fecha) {
        Response<String> r = Rest.put(SERVER_URL + 
"ws_carga1/ws_carga1.php").
                header("token", UsuarioService.getToken()).
                queryParam("carga_id", Long.toString(cargaId)).
                queryParam("fecha", Long.toString(fecha)).
                queryParam("accion", "aceptar_carga").
                getAsString();
        return r;
    }
Provide the same parameters sent through Postman and they run correctly.
I include an image that returns the correct SQL to me via Postman
[image: Postman.png]

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/b7251b6f-9516-48ea-8682-751ddb097fe2n%40googlegroups.com.

Reply via email to