I was searching over internet for a simple tutorial how to create a webservice. I think this best tutorial I have found. This tutorial shows how to create a simple Web service and Web service client from a Java class. The Java class in this scenario converts between the Celsius and Farenheit temperature scales.
Asynchronous Communication Advantages: Requests need not be targeted to specific server. Service need not be available when request is made. No blocking, so resources could be freed. Could use connectionless protocol Disadvantages: Response times are unpredictable. Error handling usually more complex. Usually requires connection-oriented protocol. Harder to design apps Synchronous Communication Advantages: Easy to program Outcome is known immediately Error recovery easier (usually) Better real-time response (usually) Disadvantages: Service must be up and ready. Requestor blocks, held resources are “tied up”. Usually requires connection-oriented protocol
Thanks for posting this. I found this simple article on creating web services.
ReplyDeleteCreate Web Service in Java Using Apache Axis2 and Eclipse