File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes POST/PUT using CXF REST web service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "POST/PUT using CXF REST web service" Watch "POST/PUT using CXF REST web service" New topic

POST/PUT using CXF REST web service

Sunny Bhandari
Ranch Hand

Joined: Dec 06, 2010
Posts: 448

I am writing REST web service with CXF framework and facing issues.
I have successfully issued GET and DELETE requests but not able to complete the POST and PUT requests.
See the code and let me know if I need to do something different for POST and PUT requests

The code and the exception that I get follows - An interface for defining the webservice operation - A order object with getters/setters - A list of Order objects - A concrete implementation of web service to invoke the HTTP requests

The exception is:

Java Experience
I agree. Here's the link:
subject: POST/PUT using CXF REST web service
It's not a secret anymore!