command line
wget http://www.panticz.de/sites/default/files/soap.txt -O /tmp/soap.sql
mysql -u magento -pmagento magento < /tmp/soap.sql
Create soap role
System > Web Services > Roles
[Add New Role]
Role name: API Full Access
Roles Resources
Resource Access: All
[Save Role]
Create soap user
System > Web Services > Users
[Add New User]
User Name: soap
First Name: soap
Last Name: soap
Email: soap@soap.com
Api Key: test123
Api Key Confirmation: test123
This account is: Active
User Role
select: API Full Access
[Save User]
SOAP login test with PHP
// Magento login information
$mage_url = 'http://YOUR_MAGENTO_IP/magento/index.php/api/?wsdl';
$mage_user = 'soap';
$mage_api_key = 'test123';
// Initialize the SOAP client
$soap = new SoapClient( $mage_url );
// Login to Magento
echo $soap->login( $mage_user, $mage_api_key );
?>
$URL="http://dl.dropbox.com/u/4170695/magento/magento-product-info.php";
echo "wget $URL -O - | bash -";
echo "
"; $c = curl_init(); curl_setopt($c, CURLOPT_URL, $URL); echo htmlspecialchars(curl_exec($c)); curl_close($c); echo "
";
?>