Home > DeveloperSection > Blogs > How to Create Web Service in PHP

How to Create Web Service in PHP


PHP PHP 
Ratings:
1 Comment(s)
 2717  View(s)
Rate this:

How to Create Web Service in PHP


Before creating Web Service in PHP first of all I will discuss about what’s Web Service? Web Service is an application that is designed to interact directly with other applications over the internet. That is in simple term, Web Services are means for interacting with objects over the Internet. Web Service is stateless service architecture which is platform independent, language independent and protocol independent.


 The main advantage of Web Service communication is web service messages are formatted as XML, a standard way for communication between two incompatible systems. And this message is sent via HTTP, so that they can reach to any machine on the internet without being blocked by firewall.


Web Services communicate by using standard web protocols and data formats, such as XML, SOAP, WSDL, UDDI etc.


XML: XML is used to tag data in web service because XML provides a language which can be used between different platforms and programming languages, and still express complex messages and functions.


SOAP: SOAP is stands for Simple Object Access Protocol. It’s used to transferring data in web service.


WSDL: WSDL is stands for Web Service Description Language and it’s used to describing information about web service.


UDDI: its stands for Universal Description Discovery and Integration. It’s a protocol for describing available web service components. This standard allows businesses to register with an Internet directory that will help them advertise their services.      

       

To create a web service in PHP you have to follow some steps.


1.  Create WSDL (Web Service Description Language)file for web services

2.  Create Server site file

3.   Create Client site file

How to create Web service in PHP

By Pravesh Singh on   4 years ago
Very Informative blog. Thanks for sharing with us.

Don't want to miss updates? Please click the below button!

Follow MindStick