Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"The request sent by the client was syntactically incorrect"

 
mariyam saeed
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using the auto generated restful web services codes from netbeans, and i am testing the restful web service using advanced rest client in chrome and i am having the Sql Database,
i have tried to recieve all rows in the table using GET, and it is working successfully,
but when i tried "POST", OR "PUT" it gives me this error

</head><body><h1>HTTP Status 400 - Bad Request</h1><hr/><p><b>type</b> Status report</p><p><b>message</b>Bad Request</p><p><b>description</b>The request sent by the client was syntactically incorrect.</p><hr/><h3>GlassFish Server Open Source Edition 4.0 </h3></body></html>

can anybody help to identify what is wrong with the code
s.PNG
[Thumbnail for s.PNG]
GET
2e.PNG
[Thumbnail for 2e.PNG]
POST
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic