hello, I'm using sugar 5.0.0e and I've created a custom module, and when I try to access it using soap, it doesn't retrieve anything.
Here is my code:
What could be the problem? Any ideas?PHP Code:if(!defined('sugarEntry'))define('sugarEntry', true);
require('include/nusoap/nusoap.php');
$auth_array = array(
'user_auth' => array(
'user_name' => 'admin',
'password' => md5('admin'),
)
);
$client = new nusoapclient("MY_SUGAR_SOAP_URL");
$login_results = $client->call('login', $auth_array);
echo "<pre>" . print_r($login_results, true) . "</pre>";
$session_id = $login_results['id'];
$module_name = "custom_matches";
$result = $client->call('get_module_fields',
array($session_id,
$module_name)
);
echo "<pre>" . print_r($result, true) . "</pre>"; //IT DOESN'T SHOW ANYTHING
echo "<pre>" . print_r($client, true) . "</pre>"; //it shows no error


LinkBack URL
About LinkBacks




Reply With Quote

Bookmarks