Skip to content

capdigital/ntlmsoapclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

NTLMSoapClient

Installation par composer :

composer require capdigital/ntlmsoapclient

Configuration si symfony-receip ne fonctionne pas :

  1. Activer l'analyse du fichier de configuration en allant dans /config/bundles.php et intégrer la ligne :
    Capdigital\NtlmSoapClient\CapdigitalNTLMSoapClient::class => ['all' => true]

  2. Créer le fichier de configuration dans /config/packages/capdigital_ntlm_soap_client.yaml contenant :
    capdigital_ntlm_soap_client:
    url: "http://xxx.xxx.xxx.xxx"
    port: "xxxx"
    server: "SERVER_NAME"
    society: "SOCIETY_NAME"
    user: "DOMAINE\USER"
    password: "PASSWORD"

  3. Utilisation du service dans un controller :
    use Capdigital\NtlmSoapClient\Service\CapdigitalNtlmSoapClient as serviceNtlmSoapClient;
    class maClass
    {



mafonction(serviceNtlmSoapClient $serviceNtlmSoapClient)
{
$service = $serviceNtlmSoapClient->connect($wsName, $deleteSociety = true);
ou
$service = $serviceNtlmSoapClient->connect($wsName);
}

}
  1. Exemple :
    mafonction(serviceNtlmSoapClient $serviceNtlmSoapClient)
    {
    $service = $serviceNtlmSoapClient->connect('SystemService', $deleteSociety = true);
    $result = $client->Companies();
    $companies = $result->return_value;
    echo "Companies:
    ";
    if (is_array($companies)) {
    foreach($companies as $company) {
    echo "$company
    ";
    }
    $cur = $companies[0];
    }
    else {
    echo "$companies
    ";
    $cur = $companies;
    }
    }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages