OTRS6 and OpenNMS 21 ticketing plugin

Moderator: crythias

Post Reply
n1els
Znuny newbie
Posts: 3
Joined: 22 Nov 2017, 12:18
Znuny Version: 6 stable

OTRS6 and OpenNMS 21 ticketing plugin

Post by n1els »

I had this previously working on another server running OTRS 5.0.12 and an older version of OpenNMS.

For these new two servers I have followed the instructions on https://wiki.opennms.org/wiki/OTRS_Trou ... _and_above.

Unlike in 5.0.12, OTRS 6.0.1 doesn't seem to have the GenericTicketConnector by default so I have created it by importing a .yml file as follows:

Code: Select all

---
Debugger:
  DebugThreshold: debug
  TestMode: '0'
Description: Ticket Connector
FrameworkVersion: 6.0.1
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
    TicketHistoryGet:
      Description: Retrieves history of a Ticket
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketHistoryGet
    TicketSearch:
      Description: Search for Tickets
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketSearch
    TicketUpdate:
      Description: Updates a Ticket
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketUpdate
  Transport:
    Config:
      MaxLength: '100000000'
      NameSpace: http://www.otrs.org/TicketConnector/
    Type: HTTP::SOAP
RemoteSystem: ''
Requester:
  Transport:
    Type: ''
When I now use the "Create Ticket" button in OpenNMS I can see the following error in the OTRS log:

Code: Select all

[Tue Dec  5 19:31:31 2017][Error][Kernel::GenericInterface::Debugger::DebugLog][224] DebugLog error:  Summary: SOAPAction 'http://www.otrs.org/TicketConnector/TicketCreate' does not match expected result 'http://www.otrs.org/TicketConnector/#TicketCreate'  Data   : No data provided.

[Tue Dec  5 19:31:31 2017][Error][Kernel::GenericInterface::Debugger::DebugLog][224] DebugLog error:  Summary: SOAPAction 'http://www.otrs.org/TicketConnector/TicketCreate' does not match expected result 'http://www.otrs.org/TicketConnector/#TicketCreate'  Data   : SOAPAction 'http://www.otrs.org/TicketConnector/TicketCreate' does not match expected result 'http://www.otrs.org/TicketConnector/#TicketCreate'.

[Tue Dec  5 19:31:31 2017][Error][Kernel::GenericInterface::Debugger::DebugLog][224] DebugLog error:  Summary: Returning provider data to remote system (HTTP Code: 500)  Data   : <?xml version="1.0" encoding="UTF-8"?><soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><Fault xmlns="http://www.otrs.org/TicketConnector/"><faultcode>Server</faultcode><faultstring>SOAPAction 'http://www.otrs.org/TicketConnector/TicketCreate' does not match expected result 'http://www.otrs.org/TicketConnector/#TicketCreate'</faultstring></Fault></soap:Body></soap:Envelope>.


So it seems that OTRS is receiving 'http://www.otrs.org/TicketConnector/TicketCreate' from OpenNMS but it wants to get 'http://www.otrs.org/TicketConnector/#TicketCreate' ?
Post Reply