charset = CHARSET; $rpc->debug = DEBUG; $resp = $rpc->call($HTTP_RAW_POST_DATA); header ('Content-Type: text/xml; charset=' . CHARSET); echo $resp, LF; } catch (Exception $e) { header('HTTP/1.1 500 Internal Error'); echo 'Error: ' . $e->getMessage() . ' (' . $e->getCode() . ')', LF; } ?>