Let's take an example.
You wrote the calculator code in any language (java, c, C ++, etc.) that perform 4 operations: addition, subtraction, multiplication and division. Suppose we deploy this code on a server. Now you want to publish this code on the Internet so that anyone in the world who has connected to the Internet can use your code. The web service is now operational. According to your server, you need to follow the implementation method to convert your code into a web service. For example, you use the Apache axis server and you injected your code using jax-ws (java api for xml web services). Your code will be published as a web service at the URL (e.g. http: //www.myserver/calculator ).
Now, how are you going to access this web service? Now the client enters the game. Suppose you have created the website www.calculation.com. And from there you take 2 integer inputs and call your web service using http: //www.myserver/calculator/add to add, http: //www.myserver/calculator/subtract to subtract http: //www.myserver/ calculator / multiply for multiplication and http: //www.myserver/calculator/multiply for division.
Now you can see that each of your operations with web services adds, subtracts, multiplies and divides works as a service, and in the future allows you to claim that you have a requirement to place the equation solution service on your site, then you can reuse your add, subtract, multiply, and split web services using these links to create another service. Here you go, you have reached a service oriented architecture, i.e. SOA.
kingam
source share