I'm trying to make soap client to connect to a magento server .. and I'm new to this .. and I am learning from this link now I can get a session Id in this code:
<?php
namespace Album\Controller;
use Zend\Soap\Client;
class AlbumController extends AbstractActionController
{
public function indexAction()
{
$client = new Client("http://localhost/loyal/api/?wsdl");
$sessionId = $client->login('xxxxxx', '********');
return($client->call($sessionId,'imsales.test'));
}}
?>
but when I call imsales.test it says function $sessionId is not a valid method for this service and I had same response after this call:
return($client->call('imsales.test'));
I don't know how to call these functions
thanx in advance