Where can i find an example (or tutorial) of a java Web Service that receives and returns data ? For example i want to use a simple XML Schema with <name> and <age>, and just move around from a client to a web service.
"Quoting yourself is stupid" - Me
Joined: Dec 10, 2009
Give me one word where to start, how do i get from a java client to a java webservice by using XML ?
Where can i find an example (or tutorial) of a java Web Service that receives and returns data ?
A web service is an integration technology, not an implementation technology. It is used for connecting applications only. There is no "logic" besides what is needed to enable the applications to communicate.
There is much more than XML involved and there are different technologies for implementing web services.
For example, a SOAP-based web service uses a client SOAP Engine and a server SOAP Engine.
Application A wants to get data.
Application B has direct connection to database.
There is a web service which allows app A to get data using app B functionality.
The purpose of the web service is to allow two applications to communicate with each other. That is all.
Parvan Alexandru wrote:Definitely makes more sense now. I found that using jaxb i can "read" and "write" java data from/to xml, i'm guessing it's also possible to exchange that data between a client and a web service.