Skip to content

Instantly share code, notes, and snippets.

@nfabre
Created November 24, 2010 09:02
Show Gist options
  • Save nfabre/713359 to your computer and use it in GitHub Desktop.
Save nfabre/713359 to your computer and use it in GitHub Desktop.
<?php
//...
// Recuperation du "SessionManager" afin de pouvoir se logger
$sessionManager = $result->returnval->sessionManager;
// Creation de la requete SOAP
$soapMessage = array(
"_this" => new SoapVar($sessionManager->{'_'}, XSD_STRING, $sessionManager->type),
"userName" => "login", //ou new SoapVar("login", XSD_STRING,'xsd:string');
"password" => "password" //ou new SoapVar("password", XSD_STRING,'xsd:string');
);
// Authentification
$result = $connection->Login($soapMessage);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment