I am trying to use the rpc-example.pl in my application to connect to OTRS. I am getting an undefined vaule error at this line.
my $RPC = Core->new();
Presumably the script does not know how to do the Core->new();
How can I link the script to OTRS?
I've tried adding something like:
require "rpc.pl'
which it cannot find, so I tried:
require "/otrs_home_dir/bin/cgi-bin/rpc.pl"
and that successfully adds rpc.pl, but i'm not sure if this is the behavior I want.
Any help is appreciated, Thanks!
Perl RPC
Moderator: crythias
-
- Znuny superhero
- Posts: 723
- Joined: 10 Oct 2007, 14:30
- Znuny Version: 3.0
- Location: Hamburg, Germany
Re: Perl RPC
Have a look at the developers manual.
You'll find some examples that show how to do that.
The whole OTRS Framework takes "use" instead of "require" and in the API manual you'll find lots of examples how to create new objects.
It rather seems to me you need some perl basics. OTRS source code is not easy to understand when one does not have lots of experience.
You'll find some examples that show how to do that.
The whole OTRS Framework takes "use" instead of "require" and in the API manual you'll find lots of examples how to create new objects.
It rather seems to me you need some perl basics. OTRS source code is not easy to understand when one does not have lots of experience.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems