Development

Changeset 4809

You must first sign up to be able to contribute.

Changeset 4809

Show
Ignore:
Timestamp:
08/03/07 18:09:10 (1 year ago)
Author:
Jonathan.Wage
Message:

sfAmazonECSPlugin: Updated plugin to use sfWSDLPlugin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfAmazonECSPlugin/README

    r4725 r4809  
    11= Symfony Amazon ECS Class = 
    22 
    3 This plugin is beta and has not been officially released, use at your own risk and send any questions to jonwage@gmail.com 
     3This plugin gives you complete functionality to the Amazon ECS Api. 
     4 
     5== Requirements == 
     6 
     7This plugin requires one other plugin to be present, [wiki:sfWSDLPlugin] 
     8 
     9== Installation == 
     10 
     11Install plugin from package 
     12{{{ 
     13svn plugin-install http://plugins.symfony-project.com/sfAmazonECSPlugin 
     14}}} 
     15 
     16Install plugin from trunk of svn 
     17{{{ 
     18svn co http://svn.symfony-project.com/plugins/sfAmazonECSPlugin 
     19}}} 
     20 
     21After installing clear your cache 
     22{{{ 
     23symfony cc 
     24}}} 
    425 
    526== List of Methods == 
  • plugins/sfAmazonECSPlugin/lib/BasesfAmazonECS.class.php

    r4771 r4809  
    2020  protected $wsdl                     = 'http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl', 
    2121            $service                  = 'AWSECommerceService', 
    22             $soapClient               = null, 
     22            $sfWSDL                   = null, 
    2323            $awsAccessKeyId           = null, 
    2424            $associateTag             = null, 
     
    3838  public function __construct($awsAccessKeyId, $associateTag = null, $merchantId = null) 
    3939  { 
    40     $this->soapClient = new SoapClient($this->wsdl); 
     40    $params = array('AWSAccessKeyId' => $awsAccessKeyId, 'AssociateTag' => $associateTag, 'MerchantId' => $merchantId); 
     41     
     42    $this->sfWSDL = new sfWSDL('AmazonECS', $this->wsdl, $params); 
    4143     
    4244    $this->awsAccessKeyId = $awsAccessKeyId; 
     
    426428    $params = array_merge($mainParams, $additionalParams); 
    427429     
    428     $parameters = array('Service'         =>  $this->service, 
    429                         'AssociateTag'    =>  $this->associateTag, 
    430                         'AWSAccessKeyId'  =>  $this->awsAccessKeyId, 
    431                         'Version'         =>  '2007-06-13', 
    432                         'Request'         =>  array($params)); 
    433      
    434     return $this->soapClient->__soapCall($method, array($parameters)); 
     430    return $this->sfWSDL->$method($params); 
    435431  } 
    436432}