Sending a POST request via SOAPUI, the body of the request is data in JSON format:
data={"currentdate": "2015-06-19", "Reset": true}
and crawling page messages through fiddler Content-type is application/x-www-form-urlencoded
At first I added Content-type = application/x-www-form-urlencoded to the header.
Soapui Media Type Select application/json,body content data={"currentdate": "2015-06-19", "Reset": true}
The error code returned by the reply message tells me that the JSON data is not in the correct format.
Later tried a lot of ways, the body of the content through the UrlEncode encoding and then put in, or the media type from the drop-down menu of a test, No.
Only the data is used as name, {"currentdate": "2015-06-19", "Reset": true} as value is added to the header of the message in order to return the response as a function of style=query.
However, this is not a normal solution, because if the body data is very long, all added to the message header, will exceed the length of the message header limit.
In fact, the method is very simple, from the beginning should be thought, just be soapui interface design to mislead.
You only need to manually populate the Media Type with application/x-www-form-urlencoded ( This option is not available in the drop-down list).
Body content directly fill data={"currentdate": "2015-06-19", "Reset": true} on it.
[SoapUI] sends a POST request via SoapUI, the body of the request is a JSON-formatted data