I am very new to OTRS and Perl as well

1) We want to call Web-Services from OTRS instead of connecting to company's DBs. Is it possible in general?
I am trying in Kernel/Config.pm in a place where we build insert query to call this Perl script:
Code: Select all
use HTTP::Request::Common;
$ua = LWP::UserAgent->new;
$ua->request(POST 'http://_host_/index.php', [foo => 'bar', bar => 'foo']);
system('php '.$ua);
Software error:
Undefined subroutine &Kernel::System::CustomerUser::DB::_ConvertTo called at /opt/otrs//Kernel/Config.pm line 594.
Not really sure what does it mean and how I can call any webService and give some parameters to it per post.
2) another one problem is that I cannot write into file with this code:
Code: Select all
open(file, ">>/home/developer/vhosts/local.otrs.de/htdocs/foobar.txt");
print file "First line\n";
print file "Second line\n";
close (file);
Software error:
Undefined subroutine &Kernel::System::CustomerUser::DB::_ConvertTo called at /opt/otrs//Kernel/Config.pm line 594.
I am very thankful for any your help!
Tatyana