File: fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch11_cURL_to_Interact_with_WebServ/soapex.php

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch11_cURL_to_Interact_with_WebServ/soapex.php  >  Download  
File: fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch11_cURL_to_Interact_with_WebServ/soapex.php
Role: Example script
Content type: text/plain
Description: Example script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change:
Date: 1 month ago
Size: 590 bytes
 

Contents

Class file image Download
<?php
    $client
= new SoapClient("http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl");

   
$search->AWSAccessKeyId = "04WC7A96F0XKX81KBF02";
   
$search->Request->SearchIndex = "Music";
   
$search->Request->Keywords = "Merle Haggard";

   
$r = $client->itemSearch($search);

    foreach (
$r->Items->Item as $item) {
   
$attributes = $item->ItemAttributes;
    if (
is_array($attributes->Artist)) {
       
$artist = implode($attributes->Artist, ", ");
    } else {
       
$artist = $attributes->Artist;
    }
    print
"artist: $artist; title: $attributes->Title<br />";
    }
?>

For more information send a message to info at phpclasses dot org.