简体   繁体   English

设置如何从Soapui获取JSON主体的请求?

[英]How set get request with json body from soapui?

It is legal (in some cases) to send get request with json data contained in the body. (在某些情况下)使用正文中包含的json数据发送get请求是合法的。 But soapui hides "body" subwindow where I can paste json string so only key-value pairs menu is available. 但是soapui隐藏了“ body”子窗口,我可以在其中粘贴json字符串,因此只有键值对菜单可用。 Is there any workaround to send get request with body in soapui? 在soapui中,是否有任何变通方法来发送获取请求和正文?

You can add json, choose application/json as Media type, as shown below. 您可以添加json,选择application / json作为Media type,如下所示。 I use soapui release 4.5.1,free edition on linux. 我使用soapui 4.5.1版,Linux上的免费版。

在此处输入图片说明

Is this what you are looking for? 这是你想要的?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM