Download presentation
Presentation is loading. Please wait.
Published byElijah Webb Modified over 8 years ago
1
Web Services Dr.Kwanchai Eurviriyanukul kwanchai@rmutl.ac.th The contents of this slide set are obtained from various sources including W3School, WIKIPEDIA etc.
2
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.
3
Web Services SOAP WSDL UDDI
4
Web Services SOAP WSDL UDDI
5
Web Services SOAP WSDL UDDI
6
Web Services SOAP WSDL UDDI
7
Web Services SOAP WSDL UDDI
8
Practical Refresh (Last-week Lab.) 1.plus-local.php 2.plus-server.php 3.plus.wsdl
9
Practical Refresh (Last-week Lab.) 1.plus-local.php 2.plus-server.php 3.plus.wsdl
10
Practical Refresh (Last-week Lab.) 1.plus-local.php 2.plus-server.php 3.plus.wsdl
11
Practical Refresh (Last-week Lab.) 1.plus-local.php 2.plus-server.php 3.plus.wsdl
12
Practical Refresh (Last-week Lab.) 1.plus-local.php 2.plus-server.php 3.plus.wsdl
13
Practical Refresh (Last-week Lab.) 1.plus-local.php 2.plus-server.php 3.plus.wsdl
14
Practical Refresh (Last-week Lab.) 1.plus-local.php 2.plus-server.php 3.plus.wsdl
15
Practical Refresh (Last-week Lab.) 1.plus-local.php 2.plus-server.php 3.plus.wsdl
16
Practical Refresh (Last-week Lab.) 1.plus-local.php 2.plus-server.php 3.plus.wsdl
17
Web Services plus.wsdl plus-server.php plus-local.php 1.Plus-local.php 2.Plus-server.php 3.Plus.wsdl
18
Web Services plus.wsdl plus-server.php plus-local.php 1.Plus-local.php 2.Plus-server.php 3.Plus.wsdl
19
Web Services plus.wsdl plus-server.php plus-local.php 1.Plus-local.php 2.Plus-server.php 3.Plus.wsdl
20
Web Services plus-local.wsdl plus-server.php plus-local.php 1.plus-local.php 2.plus-server.php 3.plus-local.wsdl
21
WSDL
22
Locate your service plus-local.wsdl 1.….. 2. 3. 4. 5. 6. 7.
23
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
24
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
25
SOAP
26
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.?>
27
SOAP Example Plus-2.php cont.-2 Request : 10 20 Response: 30
28
Configure you machine to support Web Services In php.ini Uncomment + reboot PC extension=php_soap.dll extension=php_xmlrpc.dll
29
Minimize WSDL caching time Php.ini
30
Localhost problem
31
Change localhost=>127.0.0.1 Localhost => 127.0.0.1 127.0.0.1 is a loop-back IP address for your machine.
32
Unable to connect to server solved
33
SOAP Example Plus-2.php cont.
34
Hands-on lecture Let’s implement the web services.
35
Week-14-Lab
37
plus-local.wsdl - - - - - - - -
38
Configure you machine to support Web Services In php.ini Uncomment extension=php_soap.dll extension=php_xmlrpc.dll
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.