i have this function, but it doesnt work. im trying to do a Post, sending information using the params. but its showme that error!.
_____________________________________________________start
function valideIngreso() as Void {
var url = "rest of url...../Sesion/InicioSesionWatch";
var params = {
"IdWatch" => "1",
"Cod" => "1111"
};
var options = {
:method => Communications.HTTP_REQUEST_METHOD_POST,
:headers => {
"Content-type"=> "application/json",
"Accept"=> "application/json",
},
:responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON
};
System.println(params);
var responseCallback = method(:obtengaRespuestaDeValideIngreso);
Communications.makeWebRequest(url, params, options, method(:obtengaRespuestaDeValideIngreso));
}
status=>400, errors=>{$=>['I' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0.]}, type=>tools.ietf.org/.../rfc7231
status=>400, errors=>{$=>['I' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0.]}, type=>tools.ietf.org/.../rfc7231
__________________________________________________________________________________ end.
the "service" expects 2 values.
am i doing something wrong?
am i doing something wrong?