Connecting to Magento API with SOAP

前端 未结 5 2114
悲&欢浪女
悲&欢浪女 2021-01-12 09:45

I\'m trying to follow a tutorail on connecting to magento API with Soap, but am stuck already ? SOAP seems to be installed on my sever as i can browse to the ?wsld and it di

5条回答
  •  轮回少年
    2021-01-12 10:16

    You put this into a new blank file. Save this as name.php und run this is on your server:

    login($apiuser, $apikey); //we do login
    
    
            print_r($client->call($sess_id, $action));
            }
            catch (Exception $e) { //while an error has occured
                echo "==> Error: ".$e->getMessage(); //we print this
                   exit();
            }
    ?>
    

    Regards boti

提交回复
热议问题