L partie de code qui pose pb
Citation:
Envoyé par
mathieu
montre nous le code que tu as essayé
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| class NTLMSoapClient extends SoapClient {
function __doRequest($request, $location, $action, $version) {
$headers = array(
'Method: POST',
'Connection: Keep-Alive',
'User-Agent: PHP-SOAP-CURL',
'Content-Type: text/xml; charset=utf-8',
'SOAPAction: "'.$action.'"',
);
$this->__last_request_headers = $headers;
$ch = curl_init($location);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POST, true );
curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_NTLM);
curl_setopt($ch, CURLOPT_USERPWD, $this->user.':'.$this->password);
$response = curl_exec($ch);
$contents = curl_multi_getcontent($ch);
$info = curl_getinfo($ch);
return $response;
}
function __getLastRequestHeaders() {
return implode("\n", $this->__last_request_headers)."\n";
}
}
$client = new MyServiceNTLMSoapClient($url, $options);
$result = $client->GetSite();
var_dump($result); |
commence et ne retourne pas tout
en revanche si je stocke response dans un fichier xml les infos y sont bien stockées.
Il semble que ce soit un problème d'affichage lié à l'utilisation ds groups.
Code:
string(511) "<groups><group id="5" name="Tests Members" description="Use this group to give people contribute permissions to the SharePoint site: Tests" ownerid="3" ownerisuser="False"><group id="3" name="Tests Owners" description="Use this group to give people full control permissions to the SharePoint site: Tests" ownerid="3" ownerisuser="False"><group id="4" name="Tests Visitors" description="Use this group to give people read permissions to the SharePoint site: Tests" ownerid="3" ownerisuser="False"></group>"
Auriez vous une solution de contournement?
Merci