• Post Reply Bookmark Topic Watch Topic
  • New Topic

REST web service CRUD Operation  RSS feed

 
vivek shankare gowda
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am Learning Rest web service.. While working on put method operation I got some errors. Please Help me to solve it.


Library.java

2.Html file code for Update operation
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you going to tell us what those errors are, or are we supposed to go through all this unformatted code and guess?
 
vivek shankare gowda
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..in my HTML if I click add or update button.. I am unable to get the result.. Could you please check addupdatebook method alone in library.java class.whether code is correct or not. I am getting unable to consume error.

Thanks a lot
 
Rob Spoor
Sheriff
Posts: 21093
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've added some code tags because it was impossible to read your code without them.

Why have you specified @Consumes to take */*? Try using text/plain instead, or perhaps application/xml (as that seems to be what you're sending).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!