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 REST client with POST verb - some help needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "REST client with POST verb - some help needed" Watch "REST client with POST verb - some help needed" New topic

REST client with POST verb - some help needed

Andras Ercs

Joined: Jan 10, 2011
Posts: 1
Hi all,

I am trying to write a REST client with POST/PUT verbs. The server is an Axis2 system using wsdl 2.0. The wsdl2 is the following:

The client uses Jersey jars. The interesting line to call the service is the following:

where the User class defined as

I am working with eclipse and using TCP Monitor to trace the request/response communication exchange. The request is absolutely correct:

But unfortunately the server at the addUser entrypoint get an empty User object:

What is my mistake? What should I change and where?

(An additional info: the login (with Axis2 server and Jersey-base client with GET verb) works properly!)

Thanks in advance

It is sorta covered in the JavaRanch Style Guide.
subject: REST client with POST verb - some help needed
Similar Threads
WSDL2Java causes RuntimeException: org.apache.xmlbeans.XmlException: error: src-resolve
Axis2 POJO web service - wsdl generating xs:anyType
XMLSpy won't work with our AXIS2 WSDL but our system works with it fine
XmlException on calling WSDL2Java
complextype with Axis2