GenericInterface Web Service - CustomerSearch and CustomerUserDataGet

Moderator: crythias

Locked
akam
Znuny newbie
Posts: 4
Joined: 10 Mar 2016, 19:19
Znuny Version: 00005

GenericInterface Web Service - CustomerSearch and CustomerUserDataGet

Post by akam »

Hello,

is it possible in the GenericInterface Web Service to work not only with tickets, but, for example, with clients? When I try to add Operations in addition to Ticket::, Session:: ConfigItem:: nothing else. But I would like to find customer by phone number and get customer data.

Is it possible to make GenericInterface features such as in rpc.pl (this option does not suit, because otrs soap returns random keys s-gensym*)

Code: Select all

my $RPC = new SOAP::Lite( proxy => 'http://otrs/otrs/rpc.pl', uri => 'http://otrs/Core' );
# 
my %CustomerData = (
    Search      => $phone,
);
my $CustomerID = $RPC->Dispatch($soap_user,$soap_pass,'CustomerUserObject','CustomerSearch', %CustomerData)->result;
# 
my %CustomerUserData = (
    User        => $CustomerID,
);
my $Customer = $RPC->Dispatch($soap_user,$soap_pass,'CustomerUserObject','CustomerUserDataGet', %CustomerUserData)->body;
Заранее спасибо.
Locked