X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2Fbin%2Ffreeside-xmlrpcd;h=e4e03345afb5a329e2cdcfee1ea3564af059f465;hp=e22d0f06380b8256b9298106809afd8897c768e7;hb=f822e27a1e00594332ffa487a1c284234c5580a6;hpb=a8001fede477df80f80951eaf962bdb058d9f605 diff --git a/FS/bin/freeside-xmlrpcd b/FS/bin/freeside-xmlrpcd index e22d0f063..e4e03345a 100644 --- a/FS/bin/freeside-xmlrpcd +++ b/FS/bin/freeside-xmlrpcd @@ -6,9 +6,6 @@ use FS::XMLRPC_Lite; #XMLRPC::Lite for XMLRPC::Serializer #and XMLRPC::Transport::HTTP use FS::Conf; - -##use FS::ClientAPI qw( load_clientapi_modules ); -##use FS::ClientAPI_XMLRPC; #FS::SelfService::XMLRPC; use FS::API; #freeside xmlrpc.cgi @@ -19,17 +16,9 @@ my %typelookup = ( ); use constant ME => 'xmlrpcd'; - -# - freeside_init1(ME); - -#load_clientapi_modules; - freeside_init2(ME); -#FS::ClientAPI::Signup::clear_cache(); - my $conf = new FS::Conf; die "not running; xmlrpc_api conf option is off\n" unless $conf->exists('xmlrpc_api'); @@ -51,6 +40,8 @@ daemon_run( 'port' => 8008, 'handle_request' => $soap->request($request); $soap->handle; + $FS::UID::dbh->commit() if $FS::UID::dbh; #XXX handle commit error + return $soap->response; } );