Pro PHP- Patterns, Frameworks, Testing and More
CHAPTER 19 ■ INTRODUCTION TO WEB SERVICES WITH SOAP^295 A Real-World Example Now that you know the theory of web services, let’s ...
(^296) CHAPTER 19 ■ INTRODUCTION TO WEB SERVICES WITH SOAP information. You then call the ItemSearch operation on the service an ...
CHAPTER 19 ■ INTRODUCTION TO WEB SERVICES WITH SOAP^297 } } ["TotalResults"]=> int(1) ["TotalPages"]=> int(1) ["Item"]=> ...
McArthur_819-9.book Page 298 Friday, February 29, 2008 8:03 AM ...
299 ■ ■ ■ CHAPTER 20 Advanced Web Services In the previous chapter, you created a basic web service and made a call to the Amazo ...
(^300) CHAPTER 20 ■ ADVANCED WEB SERVICES Listing 20-1 demonstrates creating two complex types: CallDetailRecord, to represent o ...
CHAPTER 20 ■ ADVANCED WEB SERVICES^301 <part name="Subscriber" type="xsd:string"/> </message> <message name="GetC ...
(^302) CHAPTER 20 ■ ADVANCED WEB SERVICES The CallDetailRecord complex type, consisting of a number of XSD elements, defines the ...
CHAPTER 20 ■ ADVANCED WEB SERVICES^303 $server->addFunction('GetCallDetailRecords'); $server->handle(); Listing 20-3 shows ...
(^304) CHAPTER 20 ■ ADVANCED WEB SERVICES int(3600) ["Caller"]=> string(12) "123-123-1234" ["Callee"]=> string(12) "123-12 ...
CHAPTER 20 ■ ADVANCED WEB SERVICES^305 array(2) { [0]=> object(CallDetailRecord)#2 (4) { ["StartTime"]=> string(23) "20070 ...
(^306) CHAPTER 20 ■ ADVANCED WEB SERVICES Listing 20-5. HTTP Authentication in Web Services $client = new SoapClient( 'service.w ...
CHAPTER 20 ■ ADVANCED WEB SERVICES^307 //Get the session id from the client cookies $session_id = $client->_cookies['PHPSESSI ...
(^308) CHAPTER 20 ■ ADVANCED WEB SERVICES Objects and Persistence Until now, you have been using simple functions to handle the ...
CHAPTER 20 ■ ADVANCED WEB SERVICES^309 ini_set('soap.wsdl_cache_enabled', '0'); $server = new SoapServer('demo.wsdl'); $server-& ...
(^310) CHAPTER 20 ■ ADVANCED WEB SERVICES Listings 20-11 and 20-12 show the SOAP server and client, respect ...
CHAPTER 20 ■ ADVANCED WEB SERVICES^311 Listing 20-12. SOAP Client for Transmitting Binary Data (photoclient.php) <?php $clien ...
McArthur_819-9.book Page 312 Friday, February 29, 2008 8:03 AM ...
313 ■ ■ ■ CHAPTER 21 Certificate Authentication Certificate authentication is one of the most powerful methods for securing your ...
(^314) CHAPTER 21 ■ CERTIFICATE AUTHENTICATION Technically, your CA is just another self-signed certificate, which is not inhere ...
«
10
11
12
13
14
15
16
17
18
19
»
Free download pdf