5 Replies Latest reply on Mar 3, 2021 1:03 AM by David Lopez Cruz

    PUT and POST JSON in Java Transformation

    inuser539132 New Member

      Hi all,

       

      As an input I have a string containing JSON (for example {"id":"123", "name":"John"}) and I need to create a JAVA transformation that will send a PUT request to the provided URL.

      For the POST method I used the HTTP Transformation and it works with no problem. However in the PowerCenter that we work on the only options are GET, POST and SIMPLE POST, so for the PUT we need a workaround - Java Transformation.

       

      I couldn't find any working example of such code, only information that it is possible to do with Java.

      Could you please provide an example of PUT request in Java that I can learn this method better?

       

      Thank you!