
December 26th, 2007, 06:40 AM
|
|
Registered User
|
|
Join Date: Dec 2007
Posts: 1
Time spent in forums: 15 m 26 sec
Reputation Power: 0
|
|
Problem with Soap
Hello Friends , It's My first time. First, Sorry For my english, it's so bad.
I am working with Soap Pear because is Faster than NuSoap.
I have a problem, I loss some info in my array using Soap Pear.
For example this is my array (response to Wsdl page):
PHP Code:
stdClass Object
(
[count] => 8
[offset] => 0
[products] => Array
(
[0] => stdClass Object
(
[adId] => 10273706
[advertiserId] => 276652
[advertiserName] => xxxxxxx
[buyUrl] => click-xxxxxxx
[catalogId] => cjo:569
[currency] => USD
[description] => xxxxxxx is proud to offer the Ugg - Aliso (Gaucho) - Men's: UGG Australia s new surf inspired 'Aliso' boot is durable and comfortable for every day wear. Rich leather upper is lined with 8mm Merino curly sheepskin that is warm and breathable. Side pull on tabs allow for easy on and finished with the UGG sun logo for detail. Leather covered Poron footbed creates a cushioning that will last throughout the day. Lightweight molded rubber outsole combined with cork for increased shock absorption and sure footing.
[imageUrl] => images/736/7361490/4998-507178-t.jpg
[inStock] =>
[isbn] =>
[manufacturerName] => Ugg
[manufacturerSku] =>
[name] => Ugg - Aliso (Gaucho) - Men's
[price] => 173.95
[retailPrice] => 0.0
[salePrice] => 0.0
[sku] => 7361490381
[upc] =>
)
[1] => stdClass Object
(
[adId] => 10273706
[advertiserId] => 276652
[advertiserName] => xxxxxxx
[buyUrl] => click-xxxxxxx
[catalogId] => cjo:569
[currency] => USD
[description] => xxxxxxx is proud to offer the Ugg Kids - Kid's Solvang Boot (Youth) (Chocolate) - Kids' Shoes: This boot will take your kids from the school week to the weekend in true comfort and style. Supple suede upper is lined with soft sheepskin for maximum comfort. A full-length side zipper ensures a snug fit. The exposed fleece collar and contrast stitching adds the touch of style you ve come to love from UGG Australia. Molded rubber outsole is chunky and lugged to provide traction.
[imageUrl] => mages/720/7209940/7769-211028-t.jpg
[inStock] =>
[isbn] =>
[manufacturerName] => Ugg Kids
[manufacturerSku] =>
[name] => Ugg Kids - Kid's Solvang Boot (Youth) (Chocolate) - Kids' Shoes
[price] => 90.95
[retailPrice] => 0.0
[salePrice] => 0.0
[sku] => 720994018
[upc] =>
)
[2] => stdClass Object
(
[adId] => 10273706
[advertiserId] => 276652
[advertiserName] => xxxxxxx
[buyUrl] => xxxxxx
[catalogId] => cjo:569
[currency] => USD
[description] => xxxxxxx is proud to offer the Ugg Kids - Kid's Solvang Boot (Youth) (Black) - Kids' Shoes: This boot will take your kids from the school week to the weekend in true comfort and style. Supple suede upper is lined with soft sheepskin for maximum comfort. A full-length side zipper ensures a snug fit. The exposed fleece collar and contrast stitching adds the touch of style you ve come to love from UGG Australia. Molded rubber outsole is chunky and lugged to provide traction.
[imageUrl] => images/720/7209940/7769-211065-t.jpg
[inStock] =>
[isbn] =>
[manufacturerName] => Ugg Kids
[manufacturerSku] =>
[name] => Ugg Kids - Kid's Solvang Boot (Youth) (Black) - Kids' Shoes
[price] => 90.95
[retailPrice] => 0.0
[salePrice] => 0.0
[sku] => 72099403
[upc] =>
)
[3] => stdClass Object
(
[adId] => 10273706
[advertiserId] => 276652
[advertiserName] => xxxxxxx
[buyUrl] => xxxxx
[catalogId] => cjo:569
[currency] => USD
[description] => xxxxxxx is proud to offer the Ugg - Adirondack Boot II (Caldera) - Women's: Available in whole sizes only. If between sizes, order 1/2 size up from your usual size. ; The Adirondack II is a premium cold weather boot. The leather and sheepskin upper combine to provide you with protection while the genuine sheepskin lining inside gives you comfort and warmth. Breathable Gore-Tex liner. Vibram outsole provides excellent traction and long lasting wear. Replaceable, removable and washable insole. Outsole is seam sealed to keep moisture out. Perfect for cold weather conditions. Outdoors and urban look in one. Waterproof leather and sheepskin lining keep moisture out and warmth in. Shaft height 5"
[imageUrl] => images/720/7201307/1396-287407-t.jpg
[inStock] =>
[isbn] =>
[manufacturerName] => Ugg
[manufacturerSku] =>
[name] => Ugg - Adirondack Boot II (Caldera) - Women's
[price] => 188.95
[retailPrice] => 0.0
[salePrice] => 170.06
[sku] => 720130724838
[upc] =>
)
[4] => stdClass Object
(
[adId] => 10273706
[advertiserId] => 276652
[advertiserName] => xxxxxxx
[buyUrl] => site/click-xxxxxxx-xxx
[catalogId] => cjo:569
[currency] => USD
[description] => xxxxxxx is proud to offer the Ugg - Berrien (Zephyr) - Men's: An exciting new addition to the Men s Casual Boot collection, the Berrien has the rugged motorcycle boot look with the comfort of UGG(R) Australia. Finished with a metal buckle, the upper combines distressed leather with quality sheepskin. A rubber outsole allows for durable traction with flexibility. Twin pull on tabs for easy on. The Berrien is perfect for keeping warm and comfortable with a great look.
[imageUrl] => himages/725/7255476/1396-287528-t.jpg
[inStock] =>
[isbn] =>
[manufacturerName] => Ugg
[manufacturerSku] =>
[name] => Ugg - Berrien (Zephyr) - Men's
[price] => 188.95
[retailPrice] => 0.0
[salePrice] => 0.0
[sku] => 725547666371
[upc] =>
)
[5] => stdClass Object
(
[adId] => 10273706
[advertiserId] => 276652
[advertiserName] => xxxxxxx
[buyUrl] => site/click-xxxxx
[catalogId] => cjo:569
[currency] => USD
[description] => xxxxxxx is proud to offer the Ugg - Bandon (Camwood) - Women's: Stay stylish this winter in one of UGG(R) Australia s newest addition to the Cold Weather collection, the Bandon. UGG(R) teamed up with Vibram(R) to produce a technical and sleek outsole designed specifically for UGG Australia. A Gore-Tex(R) upper allows this boot to be waterproof, windproof & breathable. The inside zipper provides easy on/off. In addition, a removable sheepskin sockliner provides extra warmth & comfort. With a chic exposed sheepskin cuff and an inside zip for a snug fit, this boot embodies all your functional needs in the elements without sacrificing great looks!; Please Note: Slight dye transfer may occur with darker colored sheepskin during first few wears.
[imageUrl] => images/725/7255428/1396-287403-t.jpg
[inStock] =>
[isbn] =>
[manufacturerName] => Ugg
[manufacturerSku] =>
[name] => Ugg - Bandon (Camwood) - Women's
[price] => 203.95
[retailPrice] => 0.0
[salePrice] => 0.0
[sku] => 725542870449
[upc] =>
)
)
[totalResults] => 12020
)
In this example, I am lossing 2 elements in my array (6 and 7). Because the correct fuction show me 8 elements (0 to 7). With NuSoap, it is ok. But NOT with pear. Every Time I Loss 2 elements in my array.
it is My php Code:
PHP Code:
$soapclient = new SOAP_Client("productSearchServiceV2.wsdl",'wsdl');
// set up an array containing input parameters to be passed to the remote procedure
$params = array(
"developerKey" => $developerkey,
"websiteId" => $websiteIdx,
"advertiserIds" => $advertiserIds,
"keywords" => $query,
"serviceableArea" => "",
"isbn" => "",
"upc" => "",
"manufacturerName" => "",
"manufacturerSku" => "",
"advertiserSku" => "",
"lowPrice" => "",
"highPrice" => "",
"lowSalePrice" => "",
"highSalePrice" => "",
"currency" => "USD",
"sortBy" => "",
"sortOrder" => "",
"startAt" => $startAt,
"maxResults" => $maxResultsx
);
$ret = $soapclient->call('search',$params);
Any IDea?? Please I need It.
Best Regards Oops!
|