Forum Discussion

tonspradlin's avatar
tonspradlin
Occasional Visitor
6 years ago

Inputting JSON request for a RESTful web service

Hey all!

I've looked through many tutorials (and perhaps looked over the part I was looking for), but I can't find out how to just copy and past the request JSON into soapUI. I know how to construct it, and would like to just copy and paste my already formatted json and see if I get a response. Is there a setting I'm missing that will allow me to do so?

If not, I can continue trying to figure out how to do it a separate way. Thank you!

1 Reply

  • JHunt's avatar
    JHunt
    Community Hero

    Hi,

     

    I'm not sure if I understood your question.

     

    To put JSON in your request body, first make sure the method is not set to GET (perhaps use POST or PUT?). Then when you edit the request, you can type the body in the section at the bottom.

     

    It's a good idea to also set the Media Type to 'application/json'.