Bonjour,

J'essaye en vai de récupérer des données issues d'un flux pour intégrer sur un site.
Le flux en question, une liste de restaurants :
http://picardie.tourinsoft.com/soft/...4-23d93ed98f16

Voici mon code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
$context = stream_context_create(array('http' => array(
    'method' => "GET",
    'content' => $request,
	'timeout' => 120,
	'header'=>"Content-Type: text/xml"."Accept-language: en\r\n" .'Accept: application/xml'.
    			"User-Agent: 	Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6\r\n".
    			"Cookie: foo=bar\r\n"
)));
$url = 'http://picardie.tourinsoft.com/soft/RechercheDynamique/Syndication/controle/syndication2.asmx/getListing?idModule=79ef2e43-830f-4dc0-8e04-23d93ed98f16'
 
$xml = file_get_contents($url, false, $context);
 
$listeHebergement = simplexml_load_string($xml);
 
 
foreach($listeHebergement->listing as $Hosting)
		{
			echo $Hosting->NomOffre;
		}
J'ai essayé pas mal de choses mais je ne vois pas bien pourquoi ça ne marche pas.

Merci d'avance pour votre aide.