For some reason I can't connect through the SOAP API anymore since I upgraded to 5.5.0. I have tried a simple example on the wiki here: http://www.sugarcrm.com/wiki/index.p...alls_using_PHP
Here is my code I used:When I run this script it returns this:PHP Code:<?php
require_once('nusoap.php');
$client = new nusoap_client('https://crm.examplesite.edu/soap.php?wsdl',true);
$auth_array = array(
'user_auth' => array(
'user_name' => 'admin',
'password' => md5('mypassword'),
)
);
$login_results = $client->call('login',$auth_array);
$session_id = $login_results['id'];
$user_guid = $client->call('get_user_id',$session_id);
printf("\n".$auth_array['user_auth']['user_name'].' has a GUID of ' . $user_guid . "\n\n");
?>
stdClass Object ( [id] => -1 [error] => stdClass Object ( [number] => 10 [name] => Invalid Login [description] => Login attempt failed please check the username and password ) )
I also ran a similar script that just outputs: admin has a GUID of -1
Could you guys give my any suggestions on how or where I can resolve this issue. Is their an updated examples to connect to SugarCRM 5.5.0? Is there a different approach to connecting to the 5.5.0 version of SOAP? What does it mean when it returns a negative GUID for admin?
I had this problem once before when we upgraded Sugar. I couldn't resolve the issue and ended up reinstalling Sugar. This time I am trying to prevent from doing this. I've also tested this through my local dev environment with no issues connecting.
Thanks in advance for any help


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks