• Post Reply Bookmark Topic Watch Topic
  • New Topic

Any user guide on using RESTClient  RSS feed

 
Tony Evans
Ranch Hand
Posts: 598
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created a very simple Rest service



I have pointed RESTClient at my jboss server

created the following file I think this is correct its JSON an will be translated by RESTClient


I get the following error

The server refused this request because the request entity is in a format not supported by the requested resource for the requested method ().

Thanks for any help.
 
Tony Evans
Ranch Hand
Posts: 598
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Slight change broker is


and in the headers added key value pair

Content-Type: application/jsonAccept: application/json
Accept: application/json


Now error is : The request sent by the client was syntactically incorrect
 
Tony Evans
Ranch Hand
Posts: 598
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it working using RESTClient set method to post

header to

Accept : application/json
Content-Type : application/json

body to {"fname":"Tony","sname":"Evans"}

And SSL set Hostname to allow all.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!