Development

Changeset 5568

You must first sign up to be able to contribute.

Changeset 5568

Show
Ignore:
Timestamp:
10/17/07 17:43:29 (1 year ago)
Author:
Jonathan.Wage
Message:

Updates to work with the sfWSDLPlugin.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfCommissionJunctionPlugin/lib/BasesfCommissionJunction.class.php

    r4813 r5568  
    2222            $websiteId      =   null, 
    2323            $wsdl           =   null, 
    24             $wsdls          =   array('ProductSearch'       =>  'http://product.api.cj.com/wsdl/version2/productSearchServiceV2.wsdl', 
    25                                       'LinkSearch'          =>  'http://product.api.cj.com/wsdl/version2/linkSearchServiceV2.wsdl', 
    26                                       'PublisherCommission' =>  'http://product.api.cj.com/wsdl/version2/publisherCommissionService.wsdl', 
    27                                       'RealTimeCommission'  =>  'http://product.api.cj.com/wsdl/version2/realtimeCommissionService.wsdl', 
    28                                       'AdvertiserSearch'    =>  'http://product.api.cj.com/wsdl/version2/advertiserSearchService.wsdl', 
    29                                       'PublisherLookup'     =>  'http://product.api.cj.com/wsdl/version2/publisherLookupService.wsdl', 
    30                                       'FieldTypesSupport'   =>  'http://product.api.cj.com/wsdl/version2/supportService.wsdl'); 
     24            $wsdls          =   array('ProductSearch'       =>  'https://product.api.cj.com/wsdl/version2/productSearchServiceV2.wsdl', 
     25                                      'LinkSearch'          =>  'https://product.api.cj.com/wsdl/version2/linkSearchServiceV2.wsdl', 
     26                                      'PublisherCommission' =>  'https://product.api.cj.com/wsdl/version2/publisherCommissionService.wsdl', 
     27                                      'RealTimeCommission'  =>  'https://product.api.cj.com/wsdl/version2/realtimeCommissionService.wsdl', 
     28                                      'AdvertiserSearch'    =>  'https://product.api.cj.com/wsdl/version2/advertiserSearchService.wsdl', 
     29                                      'PublisherLookup'     =>  'https://product.api.cj.com/wsdl/version2/publisherLookupService.wsdl', 
     30                                      'FieldTypesSupport'   =>  'https://product.api.cj.com/wsdl/version2/supportService.wsdl'); 
    3131   
    3232  /** 
     
    257257    $this->wsdl = $this->wsdls[$this->service]; 
    258258     
    259     $params = array('developerKey' => $this->developerKey, 'websiteId' => $this->websiteId); 
    260     $sfWSDL = new sfWSDL('CommissionJunction', $this->wsdl, $params); 
     259    $arguments = array('developerKey' => $this->developerKey, 'websiteId' => $this->websiteId); 
     260     
     261    $sfWSDL = new sfWSDL('CommissionJunction', $this->wsdl, $arguments); 
    261262     
    262263    unset($mainParams['params']); 
    263264     
    264     $params = array_merge($mainParams, $additionalParams); 
    265      
    266     return $sfWSDL->$method($params); 
     265    $arguments = array_merge($mainParams, $additionalParams); 
     266     
     267    $sfWSDL->mergeArguments($arguments); 
     268    $sfWSDL->setArguments(array($sfWSDL->getArguments())); 
     269     
     270    return $sfWSDL->$method(); 
    267271  } 
    268272}