Web Services Dr.Kwanchai Eurviriyanukul The contents of this slide set are obtained from various sources including W3School, WIKIPEDIA etc.
Web Services Web Services have three basic platform elements: SOAP, WSDL and UDDI. SOAP is an XML-based protocol to let applications exchange information over HTTP. WSDL is an XML-based language for locating and describing Web services. UDDI is a directory service where companies can register and search for Web services.
Web Services SOAP WSDL UDDI
Web Services SOAP WSDL UDDI
Web Services SOAP WSDL UDDI
Web Services SOAP WSDL UDDI
Web Services SOAP WSDL UDDI
Practical Refresh (Last-week Lab.) 1.plus-local.php 2.plus-server.php 3.plus.wsdl
Practical Refresh (Last-week Lab.) 1.plus-local.php 2.plus-server.php 3.plus.wsdl
Practical Refresh (Last-week Lab.) 1.plus-local.php 2.plus-server.php 3.plus.wsdl
Practical Refresh (Last-week Lab.) 1.plus-local.php 2.plus-server.php 3.plus.wsdl
Practical Refresh (Last-week Lab.) 1.plus-local.php 2.plus-server.php 3.plus.wsdl
Practical Refresh (Last-week Lab.) 1.plus-local.php 2.plus-server.php 3.plus.wsdl
Practical Refresh (Last-week Lab.) 1.plus-local.php 2.plus-server.php 3.plus.wsdl
Practical Refresh (Last-week Lab.) 1.plus-local.php 2.plus-server.php 3.plus.wsdl
Practical Refresh (Last-week Lab.) 1.plus-local.php 2.plus-server.php 3.plus.wsdl
Web Services plus.wsdl plus-server.php plus-local.php 1.Plus-local.php 2.Plus-server.php 3.Plus.wsdl
Web Services plus.wsdl plus-server.php plus-local.php 1.Plus-local.php 2.Plus-server.php 3.Plus.wsdl
Web Services plus.wsdl plus-server.php plus-local.php 1.Plus-local.php 2.Plus-server.php 3.Plus.wsdl
Web Services plus-local.wsdl plus-server.php plus-local.php 1.plus-local.php 2.plus-server.php 3.plus-local.wsdl
WSDL
Locate your service plus-local.wsdl 1.…
SOAP SOAP is a simple XML-based protocol to let applications exchange information over HTTP. Or more simply: SOAP is a protocol for accessing a Web Service
SOAP An Envelope element that identifies the XML document as a SOAP message A Header element that contains header information A Body element that contains call and response information A Fault element containing errors and status information
SOAP
SOAP Example Plus-2.php 1.<?php 2. $client = new SoapClient("plus-local.wsdl",array( 3. "trace" => 1, "exceptions" => 0)); 4. print "plus result = ". $client- >plus(10,20 ). " "; 5. print "Request : ".htmlspecialchars ($client- >__getLastRequest() )." "; 6. print "Response: ".htmlspecialchars ($client- >__getLastResponse() )." "; 7.?>
SOAP Example Plus-2.php cont.-2 Request : Response: 30
Configure you machine to support Web Services In php.ini Uncomment + reboot PC extension=php_soap.dll extension=php_xmlrpc.dll
Minimize WSDL caching time Php.ini
Localhost problem
Change localhost=> Localhost => is a loop-back IP address for your machine.
Unable to connect to server solved
SOAP Example Plus-2.php cont.
Hands-on lecture Let’s implement the web services.
Week-14-Lab
plus-local.wsdl
Configure you machine to support Web Services In php.ini Uncomment extension=php_soap.dll extension=php_xmlrpc.dll