_soapcall

zmandar -  
 zmandar -
Bonjour,

j 'ai utiliser _soapcall sous while mais elle ne marche svp aide moi

1 réponse

juju
 
tu saurait par asart la définition du code justinien
0
zmandar
 
voila le code
mysql_connect("127.0.0.1","root","") or die ("Could not connect");
		mysql_select_db ("test") or die ("Could not select database");
		
	    $request = "SELECT * FROM prospects";
		$result = mysql_query($request) or die ("erreur de selection".mysql_error());
		     
		while ($row = mysql_fetch_array($result))
			{ 
			$params = array();
			$params["lastname"] = $row['nom'];
			$params["email"] = $row['mail'];
			$params["phone"] = $row['telephone'];
			$params["company"] = $row['societe'];
			$params["country"] = $row['pays'];
			$params["description"] = $row['description'];
			
			// user id to assign the lead in vtiger
			$params["assigned_user_id"] = 1;
			$result = $client->__soapCall("create_lead_from_webform", $params);
			}
0
zmandar
 
soapcall elle m ajoute seulement le premier ligne je sais pas pourquoi !
0
zmandar
 
svp repend moi et merci
0
zmandar
 
j ai l' erreur
Fatal error: Uncaught SoapFault exception: [Client] looks like we got no XML document in C:\wamp\www\vtigercrm\soap\prospectsAPI.php:37 Stack trace: #0 C:\wamp\www\vtigercrm\soap\prospectsAPI.php(37): SoapClient->__soapCall('create_lead_fro...', Array) #1 {main} thrown in C:\wamp\www\vtigercrm\soap\prospectsAPI.php on line37
0