hi!
Currently the application server where I have a web service is down and I am doing exception/error handling. How do I get the HTTP_STATUS?
http://wiki.servoy.com/display/public/DOCS/HTTP_STATUS
Here is my code.
function sendRequestToService(event, content) {
var responseBody = null
var url = "http://xxx.xxx.x.xxx:8080/servoy-service/rest_ws/backuprestore_ws/ws_backuprestore"
var client = plugins.http.createNewHttpClient();
//Create a new request of specified type.
var request = client.createPostRequest(url);
request.setBodyContent(content)
var response = request.executeRequest()
return response
}
I am only getting the request.executeRequest() as null.
Thanks!