tags:

views:

184

answers:

0

Hi,

i am trying to create a note with SugarCRM's web service (using SOAP) but all i get is an Uncaught SoapFault exception: [Client] looks like we got no XML document error.

My code is as simple as that:

$note = $client->set_entry($session_id, 'Notes', array( array('name'=>'name', 'value'=>'Test Note From website'), array('name'=>'description', 'value'=>'This is a test note') ));

The field description causes the trouble, (if i wipe it out, the note is created) which is weird because when i get the module fields (via SOAP again) there is an entry:

15] => stdClass Object
            (
                [name] => description
                [type] => text
                [label] => Note
                [required] => 0
                [options] => Array
                    (
                    )

            )

any help?