hi all what is a web service ? I have heard about REST and SOAP.What is the real use of this in web application.What kind of purpose we use web service in php.What is the advantage ? Can any one give me a real time application example about these topics How can I add web service to a web page using php ? Thanks
Real usage = Paypal IPN or any Paypal checkout system, or any payment system in general. Web services allow you to integrate with other services like payment systems, shipping, CRMs, and just about anything you can think of. Most API's will have a manual on how to integrate with them, and since every one is different, there's not a specific manual on how to use them. If you are connecting to a REST API, you will normally use curl, and POST or GET functions. SOAP API's interface much like the way objects work with PHP. SOAP is significantly more complex to integrate with and really to understand than a REST api.
the word is integrate, means you interact your website with them (other websites that has api) one example is twitter, by using their/your classes you can do whatever you want for your website/software just as twitter does