Here is the exact error i am getting when trying to submit a ticket with the character mentioned in my first post. I could give it any data i wanted, but as soon as i entered a right single quote, it gave me the following:
Error Client: error in msg parsing: XML error parsing SOAP payload on line 6: Invalid character HERE IS ERRORS:
Client: error in msg parsing: XML error parsing SOAP payload on line 6: Invalid character
HERE IS RESPONSE:
HTTP/1.0 500 Internal Server Error Date: Wed, 29 Sep 2010 16:52:57 GMT Server: Apache/2.2.11 (Unix) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8k SVN/1.5.5 PHP/5.2.9 mod_apreq2-20051231/2.6.0 mod_perl/2.0.4 Perl/v5.10.0 X-Powered-By: PHP/5.2.9 Status: 500 Internal Server Error X-SOAP-Server: NuSOAP/0.7.2 (41404) Content-Length: 701 Connection: close Content-Type: text/xml; charset=UTF-8 Clienterror in msg parsing: XML error parsing SOAP payload on line 6: Invalid character
HERE IS RESULT:
Array ( [faultcode] => Client [faultactor] => [faultstring] => error in msg parsing: XML error parsing SOAP payload on line 6: Invalid character [detail] => )
This is the code i am using to get the values to use in my ticket from my form: (the issue is when the single right quote is placed in the description or title field (TITLE/DESCR)
Code:
$set_entry_params = array(
'session' => $session_id,
'module_name' => 'Cases',
'name_value_list'=>array(
array('name'=>'contact_id','value'=>$contact_id),
array('name'=>'status', 'value'=>'New'),
array('name'=>'priority', 'value'=>$PRIORITY),
array('name'=>'account_id','value'=>$ACCOUNTID),
array('name'=>'name','value'=>$TITLE),
array('name'=>'description','value'=>$DESCR),
array('name'=>'case_request_type_dom_c', 'value'=>$TYPE),
array('name'=>'priority', 'value'=>$PRIORITY),
array('name'=>'case_platform_dom_c', 'value'=>$PLATFORM),
array('name'=>'case_module_dom_c_c', 'value'=>$MODULE),
array('name'=>'case_submodule_dom_c', 'value'=>$COMP),
array('name'=>'account_contact_c', 'value'=>$CONTACT),
array('name'=>'case_version_c', 'value'=>$VERSION),
array('name'=>'type', 'value'=>'support_desk')
));
$caseResult = $client->call('set_entry',$set_entry_params);
$err = $client->getError();
if ($err) {
// Display the error
echo '<h2>Error</h2><pre>' . $err . '</pre>';
echo '<b>HERE IS ERRORS:</b><BR>';
echo $client->error_str;
echo '<BR><BR><b>HERE IS RESPONSE:</b><BR>';
echo $client->response;
echo '<BR><BR><b>HERE IS RESULT:</b><BR>';
print_r($caseResult);
} Thank you for any responses/help with this issue!
Tony
Bookmarks