Try the Demo

Magento Forum

   
magento Product web services takes more time to loading
 
ashokmsc4
Jr. Member
 
Total Posts:  1
Joined:  2013-02-25
 

Hi,

I am using default magento product web services for getting product details. But randomly shows fatal error. Loading time also takes more than 30 seconds. so please suggest how to fox this problem. i also attached the piece of code.

if($catagoryId !=NULL){  // pass sub catagory information based on parent catagory 
        
$subCatagoryInfo    =   $client->call($session'catalog_category.info',$catagoryId);
        
$subChildren        =   $subCatagoryInfo['children'];
        
$subChildrenArray   =   explode(',',$subChildren);
        for(
$j=0;$j<count($subChildrenArray);$j++){
            $subCatagoryData        
=   $client->call($session'catalog_category.info',$subChildrenArray[$j]);
            
$subCatagoryName        =   $subCatagoryData['name'];
            
$subCatagoryId          =   $subCatagoryData['category_id'];
            
$catagoryInfo[]         =   array('catagory_name'=>$subCatagoryName,'catagory_id'=>$subCatagoryId);
            
        
}
        print_r
(json_encode(array('catagory_info'=>$catagoryInfo)));
    
}

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top