Perl RPC

Moderator: crythias

Post Reply
unridaz
Znuny newbie
Posts: 1
Joined: 24 Sep 2010, 21:43
Znuny Version: 2.4

Perl RPC

Post by unridaz »

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!
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: Perl RPC

Post by ferrosti »

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.
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
Post Reply