aspose file tools*
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
JavaRanch » Java Forums » Java » Web Services
Bookmark "POST/PUT using CXF REST web service" Watch "POST/PUT using CXF REST web service" New topic
Author

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


OrderInfo.java - An interface for defining the webservice operation



Order.java - A order object with getters/setters




OrderList.java - A list of Order objects





OrderInfoImpl.java - A concrete implementation of web service





Test.java to invoke the HTTP requests




The exception is:



Java Experience
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: POST/PUT using CXF REST web service