Create Magento SOAP account

command line

wget -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
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 );

echo "wget $URL -O - | bash -";
echo "

$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));
echo "


soap.txt3.2 KB