<?
require_once 'SOAP/Client.php'; 

$wsdl_url =  
'http://soap.amazon.com/schemas3/AmazonWebServices.wsdl'; $WSDL = new SOAP_WSDL($wsdl_url);
$client = $WSDL->getProxy(); $params = array( 'manufacturer' => "Addison Wesley", 'mode' => 'books', 'type' => 'lite', 'tag' => 'Design Patterns', 'devtag' => '' ); $books = $client->ManufacturerSearchRequest($params); ECHO "<PRE>"; PRINT_R($books); ECHO "</PRE>"; ?>

Yes! the same code above when run in windows with diff php versions

php4apache2.dll (from windows binary PHP 4.3.3) its SLOW.
php4apache2.dll (from windows binary PHP 4.3.4) its SLOW.
php4apache2.dll (from windows binary PHP 4.3.5) its FAST.
php4apache2.dll (from windows binary PHP 4.3.6) its FAST.
php4apache2.dll (from windows binary PHP 4.3.7) its FAST.
php4apache2.dll (from windows binary PHP 4.3.8) its FAST.

SLOW = 10 - 15 secs
FAST = 1 to 2 secs

unfortunately, I can update my production version from 4.3.3

how can i make this work fast with 4.3.3?

Any help would be greatly appreciated.

    Hi,

    I think there's hardly anything you can do about it. Seems like parts of PHP the PEAR::SOAP library depends on have been heavily improved in php 4.3.5.

    There are other SOAP implementations that might be more performant but that would mean a more or less complete rewrite of your scripts.

    Thomas

      Write a Reply...