enable CardFortress in test database, #71513
[freeside.git] / FS / bin / freeside-xmlrpcd
index e22d0f0..e4e0334 100644 (file)
@@ -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;
   }
 );