JITL - JobScheduler Integrated Template Library
  1. JITL - JobScheduler Integrated Template Library
  2. JITL-272

Enable POST and PUT commands with a body when calling REST Web Services

    Details

      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/" );
      

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Uwe Risse
              Reporter:
              Uwe Risse
              Approver:
              Andreas Püschel
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: