Forum Discussion
13 years ago
I am also facing the similar issue on REST POST request. Using latest soapui 4.5.2.
Valid Json
json tab :
XML tab shows:
raw:
Valid Json
{
"user": {
"userId": 12347664,
"userName": "xxx@gmail.com",
"emailAddress": "xxx@gmail.com",
"firstName": "some",
"lastName": "TEMP",
"defaultProfileId": 873112
},
"account": {
"type": "FREE",
"features": []
},
"currentProfileId": 873112,
"userProfiles": [
{
"profileId": 873112,
"name": "Default Profile",
"profileTypeId": 1
}
],
"parentProfiles": [
{
"profileId": 873112,
"name": "Default Profile",
"profileTypeId": 1
}
]
}json tab :
<Not JSON content>
XML tab shows:
<data contentType="null" contentLength="383"><![CDATA[{"user":{"userId":12347664,"userName":"xxx@gmail.com","emailAddress":"xxx@gmail.com","firstName":"some","lastName":"TEMP","defaultProfileId":873112},"account":{"type":"FREE","features":[]},"currentProfileId":873112,"userProfiles":[{"profileId":873112,"name":"Default Profile","profileTypeId":1}],"parentProfiles":[{"profileId":873112,"name":"Default Profile","profileTypeId":1}]}]]></data>raw:
HTTP/1.1 200 OK
Date: Thu, 27 Jun 2013 12:47:21 GMT
Server: Apache/2.4.3 (Unix) OpenSSL/1.0.0-fips mod_jk/1.2.37
Set-Cookie: JSESSIONID=D0A0B36C6E071D5F1043E5DC4D7EC453.worker4; Path=/
Set-Cookie: ORIGINAL_PATH=""; Domain=.domain.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
Content-Length: 383
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
{"user":{"userId":12347664,"userName":"xxx@gmail.com","emailAddress":"xxx@gmail.com","firstName":"some","lastName":"TEMP","defaultProfileId":873112},"account":{"type":"FREE","features":[]},"currentProfileId":873112,"userProfiles":[{"profileId":873112,"name":"Default Profile","profileTypeId":1}],"parentProfiles":[{"profileId":873112,"name":"Default Profile","profileTypeId":1}]}