die "not running; selfservice-xmlrpc conf option is off\n"
unless $conf->exists('selfservice-xmlrpc');
+if ( $conf->exists('selfservice-db_profile') ) {
+ eval "use DBIx::Profile";
+ warn $@ if $@;
+}
+
daemon_run( 'port' => 8080, 'handle_request' =>
sub {
my $request = shift;
$soap->request($request);
$soap->handle;
+ $FS::UID::dbh->commit() if $FS::UID::dbh; #XXX handle commit error
+
return $soap->response;
}
);