Details
-
Fix
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
1.9.7, 1.10.2
Description
Current Situation
The class com.sos.jitl.restclient.JobSchedulerRestClient provides POST and PUT commands but it is not possible to specify a body.
Desired Behaviour
It should be possible to specify the body when using the POST or PUT commands from the class com.sos.jitl.restclient.JobSchedulerRestClient.
com.sos.jitl.restclient.JobSchedulerRestClient.headers.put("Content-Type", "application/xml"); var post = "post(<resource><ID>4711</ID><LASTNAME>world</LASTNAME><FIRSTNAME>Hello</FIRSTNAME></resource>)"; var s = com.sos.jitl.restclient.JobSchedulerRestClient.executeRestServiceCommand(post, "http://arestservice_url.com/sqlrest/CUSTOMER/" );