I'm getting error with RESTful by returning an object with more than 1 property.
ex:
- Code: Select all
var _obj = new Object()
_obj.id = 1
return _obj
works fine, into the response body I get an xml with a key "ID" and a value "1".
- Code: Select all
var _obj = new Object()
_obj.id = 1
_obj.myName = "Marco"
return _obj
Gives the error shown within the picture attached.
Am I missing something?
Regards
Marco