I stuck with RCP/SOAP interface. How it should be used? I cant figure out what is difference between "rpc.pl" or "nph-genericinterface.pl". Non of them is working for me anyway:
this is how I'm trying to connect at the moment:
Code: Select all
my $RPC = new SOAP::Lite( proxy => 'http://my-host/otrs/nph-genericinterface.pl/Webservice/webservice', uri => 'http://www.otrs.org/TicketConnector/' );
print "NOTICE: TicketObject->TicketGet(TicketID => 1653)\n";
my $som = $RPC->Dispatch( $User, $Pw, 'TicketObject', 'TicketGet', TicketID => '1653' );
die $som->fault->{faultstring} if $som->fault;
print $som->result;
I tried (based on rpc-example.pl:
Code: Select all
my $RPC = new SOAP::Lite( proxy => 'http://my-host/otrs/rpc.pl', uri => 'http://localhost/Core' );
print "NOTICE: TicketObject->TicketGet(TicketID => 1653)\n";
my $som = $RPC->Dispatch( $User, $Pw, 'TicketObject', 'TicketGet',TicketID => '1653' );
die $som->fault->{faultstring} if $som->fault;
print $som->result;
What I'm doing wrong?