View Single Post
  #1  
Old 21st June 2013, 09:09
mrtnzlml mrtnzlml is offline
Junior Member
 
Join Date: Feb 2013
Location: Czech Republic
Posts: 12
Thanks: 1
Thanked 3 Times in 3 Posts
Default SOAP Error: looks like we got no XML document

Hi! I have problem with client_update remote API function. It returns SOAP Error: looks like we got no XML document...
Code:
if($session_id = $client->login($username,$password)) {
	echo 'Logged successfull. Session ID:'.$session_id.'<br />';    //OK
}
$client_record = $client->client_get($session_id, $client_id);    //OK
$vals['contact_name'] = 'brush';
$new_record = array_merge($client_record, $vals);    //OK, contact_name changed
$affected_rows = $client->client_update($session_id, $client_id, $reseller_id, $new_record);    //FAIL
In catch $client->__getLastResponse() contains incomplete response:
Code:
... `usertheme` = 'default', `street` = '', `zip` = '', `city` = '', `state` = '', `country` = 'CZ', `telephone` = '', `mobile` = '', `fax` = '', `em
(last em - probably email is incomplete) and SoapFault -> getMessage returns looks like we got no XML document.

Any idea where is the problem?
Reply With Quote
Sponsored Links