I have this external module of my system and I thought to integrate it with web services. So I wrote the server using annotations (so far so good) and then I used Eclipse (new Web Service Client wizard) to generate the boilerplate code for the client. The result is an ugly bunch of code far from configurable, painful to test and to change. I'm looking for a straightforward API, I don't need attachments, sophysticated data types, complex asynchronous behaviour. So:
Looking forward to your advices.
I agree with Patrick, Spring 3 has a RESTServiceTemplate and a WebServiceTemplate that makes it very easy to code and configure interacting with remote web services - it'll even make un/marshalling xml into beans easy. At my company we've had great success with both of them.
To get you started:
http://static.springsource.org/spring-ws/sites/1.5/reference/html/client.html
http://blog.springsource.com/2009/03/27/rest-in-spring-3-resttemplate/
HTH
Both downloads have sample ant build files to generate client jar files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With