关于什么是SOAP服务 可以参考:Introduction to the Magento 1.x SOAP API
1. 首先如何授权一个账户去访问我们的SOAP服务
2. 创建一个授权用户
3. 创建一个授权(规定该用户可以访问哪些数据)
- 我们怎么通过SOAP服务去访问我们内部数据
假设我们授权了一个用户: test, 密码:123456
<?php
//连接Magento SOAP接口服务
$client = new SoapClient('http://localhost/mg-shoes-1/api/soap?wsdl');
//授权用户
$session = $client->login('test', '123456');
//获取分类信息
//$result = $client->call($session, 'catalog_category.info', '');
//获取分类树
//$result = $client->call($session, 'catalog_category.tree');
//获取订单列表
$result = $client->call($session, 'order.list');
//参考Introduction to the Magento 1.x SOAP API获得更多的数据
echo "<pre>";
print_r($result);
echo "</pre>";
?>
可以自己尝试测试一下