Thursday, January 4, 2007

CRM Soap issue

Working on a project using SugarCRM and using PHP5's builtin SOAP libraries to import data. Unfortunately have run into the following problems.

When calling CRM's set_entry function. SugarCRM appears to parse this xml incorrectly. Below is the actual xml that gets sent and a var_dump of what SugarCRM actually receives. In the array 'item' ends up in the array when 'item' is really part of the xml syntax.

Going to post a message to their forums and see if I get a response. In the meantime I'll start digging around the code to see if I can see why it's happening.

Request string:
string(955) "
a657eb2a4aa0a324c0b88d2ae5a7d177Accountsnametest_nameemailtest_email
"




$valuelist in SoapSugarUser.php/set_entry() line 362(ish)
array(1) {
["item"] => array(2) {
[0] => array(2) {
["name"] => string(4) "name"
["value"] => string(9) "test_name"
}
[1] => array(2) {
["name"] => string(5) "email"
["value"] => string(10) "test_email"
}
}
}

No comments: