Web services & authentication


are there some examples (or can anyone provide me with one) on how authentication is done when using webservices?

To the best of my knowledge it’s no difference server side.

Client side, I tested with this code:

  $client = new SoapClient('');


  echo 'Results from getCurrentItems():<br>';

  $status = $client->login('demo', 'demo');

  if ($status)


    $data = $client->getCurrentItems();




    echo 'Not logged in<br>';

.NET client will need to have a CookieContainer added.


I think you could just pass the username/password and create some session variables.

Something like here -


Is there a better idea?