I need xml based request, so can please any one provide xml based example?
Thanks for advance.
Just have a look to the examples directory in your installation, there are some examples using th nusoap library to call Sugar SOAP web services with xml data.
Thank you ! but I didn't found xml based request example in given folder.
Can you please share any example ?
Thanks for your reply but I need xml based request like below example. But I failed to this example.
My Logic :
$client = new nusoap_client("http://localhost/application_url/soap.php",false);
$auth_xm="<?xml version='1.0' encoding='UTF-8'?><parameters>
//Call Login service
Above logic gives below error reponse :
Array ( [faultcode] => Client [faultactor] => [faultstring] => error in msg parsing: XML error parsing SOAP payload on line 1: Reserved XML Name [detail] => )
So please help me any one .
you can also use like
$options = array(
'location' => 'http://CRMpath/soap.php',
'uri' => 'http://CRMpath/',
'trace' => 1
//user authentication array
$user_auth = array(
'user_name' => 'admin',
'password' => md5('admin123'),
'version' => '.01'
// connect to soap server
$client = new SoapClient(NULL, $options);
// Login to SugarCRM
$response = $client->login($user_auth,'admin');
$session_id = $response->id;
$user_id = $client->get_user_id($session_id);
Thanks for your reply.
But as per my requirement I need to pass request as xml based only ?
Please suggest to me is sugarcrm support xml based Request or not ?
I need xml based request like below example. But I failed to this example.
My Logic :
Can any one help on my point ?
Retrieving data ...