help with an error: boolean given, array expeceted
Posted: Tue Mar 03, 2009 9:31 am
I am trying to figure out how to get/pass information from/to Sugarcrm. I am completely unfamiliar with soap, but I was doing the following tutorial from the this Wiki page: SOAP Intro and Practical Examples, URL here: http://www.sugarcrm.com/wiki/index.php? ... l_Examples and received the following error.
Warning: SoapClient::SoapClient() expects parameter 2 to be array, boolean given in E:\xampplite\htdocs\joomsugartest\integration.php on line 11
Fatal error: Uncaught SoapFault exception: [Client] SoapClient::SoapClient() [<a href='soapclient.soapclient'>soapclient.soapclient </a>]: Invalid parameters in E:\xampplite\htdocs\joomsugartest\integration.php: 11 Stack trace: #0 E:\xampplite\htdocs\joomsugartest\integration.php( 11): SoapClient->SoapClient('http://localhos...', true) #1 {main} thrown in E:\xampplite\htdocs\joomsugartest\integration.php on line 11
What I don't seem to understand in the tutorial is that it clearly states a Boolean value of true for the second parameter here, $client = new soapclient('http://localhost/SugarCE/soap.php?wsdl',true); but then give the error for an array expected, but Boolean given. Am I just missing something?
any help would be great, thanks.
Warning: SoapClient::SoapClient() expects parameter 2 to be array, boolean given in E:\xampplite\htdocs\joomsugartest\integration.php on line 11
Fatal error: Uncaught SoapFault exception: [Client] SoapClient::SoapClient() [<a href='soapclient.soapclient'>soapclient.soapclient </a>]: Invalid parameters in E:\xampplite\htdocs\joomsugartest\integration.php: 11 Stack trace: #0 E:\xampplite\htdocs\joomsugartest\integration.php( 11): SoapClient->SoapClient('http://localhos...', true) #1 {main} thrown in E:\xampplite\htdocs\joomsugartest\integration.php on line 11
What I don't seem to understand in the tutorial is that it clearly states a Boolean value of true for the second parameter here, $client = new soapclient('http://localhost/SugarCE/soap.php?wsdl',true); but then give the error for an array expected, but Boolean given. Am I just missing something?
any help would be great, thanks.