SoapUI - REST JSON中的语法错误

时间:2013-12-06 05:19:46

标签: json rest soapui

我正在尝试使用jason在SoapUIPro中运行登录REST服务。

但是我收到了以下语法错误。

切换到xml

时工作正常

请求

POST http://122.122.232.112/services/public/login HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/json
Accept: application/json
Content-Length: 115
Host: 122.122.232.112
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

{
  "com.abc.dmb.cons.model.LoginInfo": {
    "userId": "cons31312061521360",
    "password": "Arif#1212"
  }
}

响应

HTTP/1.1 400 Bad Request
Date: Fri, 06 Dec 2013 05:02:59 GMT
Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept
Accept-Ranges: bytes
Server: abcd.setup.com.au
Content-Type: application/json;charset=ISO-8859-1
Transfer-Encoding: chunked
Connection: close

{"errorCode":"400","errorDescription":"The request sent by the client was syntactically incorrect."}

请澄清

干杯

0 个答案:

没有答案