Thanks for the link. I think i've got enough debugging info to solve the problem i just have to decipher it all now. I used this code:
Code:
<pre>
<?php
if(!defined('sugarEntry'))define('sugarEntry', true);
require_once('/var/www/html/xxx/nusoap.php');
$config['sugar_server'] = "http://xxx.com/crm/soap.php?wsdl";
$config['login'] = array(
'user_name' => 'xxx',
'password' => md5('xxx')
);
//$config['msg']="kldsfls";
//echo $config['msg'];
$config['application_name'] = 'harysh_test';
$sugarClient = new soapclient($config['sugar_server'], TRUE);
$err = $sugarClient->getError();
if ($err) {
var_dump($err);
die();
}
$sugarClientProxy = $sugarClient->getProxy();
if (!$sugarClientProxy) {
var_dump($err);
die();
}
$result = $sugarClientProxy->login($config['login'], $config['application_name']);
$session_id = $result['id'];
//Code for invoking the search method
$module_name='Contacts';
$query='contacts.last_name like "%" ';
$order_by='contacts.last_name';
$offset=0;
$select_fields='';
$max_results=5;
$deleted=0;
$search_list=$sugarClientProxy->get_module_fields($session_id,"Leads");
echo "Search result is <pre>";
print_r($search_list);
echo "</pre>";
echo '<h2>Request</h2><pre>' . htmlspecialchars($sugarClientProxy->request, ENT_QUOTES) . '</pre>';
echo '<h2>Response</h2><pre>' . htmlspecialchars($sugarClientProxy->response, ENT_QUOTES) . '</pre>';
echo '<h2>Debug</h2><pre>' . htmlspecialchars($sugarClientProxy->debug_str, ENT_QUOTES) . '</pre>';
$sugarClientProxy->logout($session_id);
?> and got this responce:
http://phpfi.com/257998
with this in the debug log:
http://phpfi.com/257999
I'm thinking this line is a clue, but i'm not sure..
2007-08-22 14:43:40.447218 soap_proxy_1855768581: Error: HTTP Error: socket read of headers timed out
Any ideas?
Bookmarks