Generic Interface REST not working

Moderator: crythias

Locked
roan
Znuny newbie
Posts: 5
Joined: 29 Apr 2016, 10:47
Znuny Version: 5.0.9

Generic Interface REST not working

Post by roan »

Hi all,

I want to use OTRS as a provider for a REST web service.
Unfortunately, I'm not able to get it work. I always receive the following error, independent of the request:

Code: Select all

Backend Kernel::GenericInterface::Transport::HTTP::REST not found. (2016-04-29 10:46:20, error)
  No data provided
TransportObject could not be initialized (2016-04-29 10:46:20, error)
  $VAR1 = {
    'ErrorMessage' => 'Backend Kernel::GenericInterface::Transport::HTTP::REST not found.',
    'Success' => 0
  };
I already checked ".../otrs/Kernel/GenericInterface/Transport/HTTP" for a missing "REST.pm", but it's there.
Also, REST is registered in SysConfig "GenericInterface::Transport::ModuleRegistration".

I'm using OTRS 5.0.9 with ITSM on Debian Jessie.

Please find in the following the Config of the REST web service:

Code: Select all

---
Debugger:
  DebugThreshold: debug
  TestMode: '0'
Description: Ticket Connector REST Sample
FrameworkVersion: 5.0.9
Provider:
  Operation:
    SessionCreate:
      Description: Creates a Session
      MappingInbound: {}
      MappingOutbound: {}
      Type: Session::SessionCreate
    TicketCreate:
      Description: Creates a Ticket
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketCreate
    TicketGet:
      Description: Retrieves Ticket data
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketGet
    TicketSearch:
      Description: Search for Tickets
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketSearch
    TicketUpdate:
      Description: Updates a Ticket
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketUpdate
  Transport:
    Config:
      KeepAlive: ''
      MaxLength: '100000000'
      RouteOperationMapping:
        SessionCreate:
          RequestMethod:
          - POST
          Route: /Session
        TicketCreate:
          RequestMethod:
          - POST
          Route: /TicketCreate
        TicketGet:
          RequestMethod:
          - GET
          Route: /TicketGet/:TicketID
        TicketSearch:
          RequestMethod:
          - GET
          Route: /TicketSearch
        TicketUpdate:
          RequestMethod:
          - PATCH
          Route: /TicketUpdate/:TicketID
    Type: HTTP::REST
RemoteSystem: ''
Requester:
  Transport:
    Type: ''
Could someone please assist me on how to get it working? Besides, a SOAP web service is working fine.

BG
OTRS 5.0.9 with ITSM on Linux & PostgreSQL 9.4
luiyi87
Znuny newbie
Posts: 1
Joined: 28 Oct 2016, 09:29
Znuny Version: 44444

Re: Generic Interface REST not working

Post by luiyi87 »

Tengo el mismo problema, conseguiste resolverlo?

saludos
Locked