Web Services enable your application to become a Web application.
Web Services are published, found, and consumed over the Web.
Web service instance syntax
Any application can have Web Service components.
The creation of Web Services has nothing to do with the type of programming language.
Web service instance example
<?php // The SiteInfo class is used to handle requests Class SiteInfo{ /** * * Return to website name * * @return string * */ Public function getName(){ out out out off out out out out out out right out of out of ’s — return “php Chinese website”; } Public function getUrl(){ out return "m.sbmmt.com” }}//Create SoapServer object $s = new SoapServer(null,array("location"=>"http://localhost/soap/Server.php","uri"=>"Server.php")); // Export all functions in the SiteInfo class $s->setClass("SiteInfo"); // Handle a SOAP request, call the necessary functions, and send back a response. $s->handle(); ?>