title: Connecting to Magento API with SOAP
body: <p>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 displays an xml file.</p>
  
  <p>I've setup the user and role in magento admin webservices.</p>
  
  <p>i'm confused by 2 things in the tutorial</p>
  
  <ol>
  <li>choosing a soap client, In this tutorial we will assume the usage of the PHP SoapClient. <strong>what is this where do i find it</strong> ?</li>
  <li>Logging with the SOAP client</li>
  </ol>
  
  <p>"So let's create a simple PHP-script that allows us to login into Magento through SOAP. The logic is here that we first need to initialize a new SoapClient object with as argument the Magento SOAP URL."</p>
  
  <pre><code> // Magento login information 
   $mage_url = 'http://MAGENTO/api/?wsdl'; 
  $mage_user = 'soap_user'; 
  $mage_api_key = '********'; 
  // Initialize the SOAP client 
  $soap = new SoapClient( $mage_url ); 
  // Login to Magento 
  $session_id = $soap-&gt;login( $mage_user, $mage_api_key );
  </code></pre>
  
  <p><strong>Where do you create this script - is it a simple php file ? and how do you actualy make the call - do you just browse to it ?</strong></p>
  
  <p><a href="http://blog.opensourcenetwork.eu/tutorials/guru/connecting-through-soap-with-magento-1" rel="noreferrer">http://blog.opensourcenetwork.eu/tutorials/guru/connecting-through-soap-with-magento-1</a></p>
  
  <p>Many thanks in advance</p>