Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

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