MappingOutbound not working in V5.07

Hilfe zu Znuny Problemen aller Art
Locked
hansjubrand
Znuny newbie
Posts: 4
Joined: 08 Mar 2016, 15:02
Znuny Version: V5.07
Real Name: Hans-Jürgen Brand
Company: technology experts GmbH & Co KG

MappingOutbound not working in V5.07

Post by hansjubrand »

I try to use the MappingOutbound feature in GenericInterface for Webservice.

The query works fine for me, but now I would like to change some keywords and some values bevore OTRS send them out to the remote system. My Webservice has the name "OTCS-uAgent" and I call this from the webbrowser "http://172.20.130.14/otrs/nph-genericin ... Articles=1" (see OTCS-uAgent.yml.txt for definition)
In the debugger I can see that "Outgoing data before mapping" looks like "Outgoing data after mapping"


Anfragedetails
Communication sequence started (2016-03-08 13:54:27, debug)
$VAR1 = {
'CONTEXT_DOCUMENT_ROOT' => '/opt/otrs/bin/cgi-bin/',
'CONTEXT_PREFIX' => '/otrs/',
'DOCUMENT_ROOT' => '/var/www/html',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
'HTTP_ACCEPT_LANGUAGE' => 'de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4,es;q=0.2',
'HTTP_CACHE_CONTROL' => 'max-age=0',
'HTTP_CONNECTION' => 'keep-alive',
'HTTP_COOKIE' => 'OTRSAgentInterface=9XptqP2Ze2D2z86Im9Poz9mtqf7qJ8rb',
'HTTP_HOST' => '172.20.130.14',
'HTTP_UPGRADE_INSECURE_REQUESTS' => '1',
'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2450.0 Iron/46.0.2450.0 Safari/537.36',
'MOD_PERL' => 'mod_perl/2.0.8',
'MOD_PERL_API_VERSION' => '2',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PATH_INFO' => '/Webservice/OTCS-uAgent/TicketGet/2',
'PATH_TRANSLATED' => '/var/www/html/Webservice/OTCS-uAgent/TicketGet/2',
'QUERY_STRING' => 'UserLogin=admin&Password=1234&AllArticles=1',
'REMOTE_ADDR' => '172.20.130.10',
'REMOTE_PORT' => '26357',
'REQUEST_METHOD' => 'GET',
'REQUEST_SCHEME' => 'http',
'REQUEST_URI' => '/otrs/nph-genericinterface.pl/Webservice/OTCS-uAgent/TicketGet/2?UserLogin=admin&Password=1234&AllArticles=1',
'SCRIPT_FILENAME' => '/opt/otrs/bin/cgi-bin/nph-genericinterface.pl',
'SCRIPT_NAME' => '/otrs/nph-genericinterface.pl',
'SERVER_ADDR' => '172.20.130.14',
'SERVER_ADMIN' => 'webmaster@localhost',
'SERVER_NAME' => '172.20.130.14',
'SERVER_PORT' => '80',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'SERVER_SIGNATURE' => '<address>Apache/2.4.7 (Ubuntu) Server at 172.20.130.14 Port 80</address>
',
'SERVER_SOFTWARE' => 'Apache/2.4.7 (Ubuntu)'
};
Detected operation 'TicketGet' (2016-03-08 13:54:27, debug)
No data provided
Incoming data before mapping (2016-03-08 13:54:27, debug)
$VAR1 = {
'AllArticles' => '1',
'Password' => '1234',
'RequestMethod' => 'GET',
'TicketID' => '2',
'UserLogin' => 'admin'
};
Outgoing data before mapping (2016-03-08 13:54:27, debug)
$VAR1 = {
'Ticket' => [
{
'Age' => 3325,
'ArchiveFlag' => 'n',
'Article' => [
{
'Age' => 3325,
'AgeTimeUnix' => 3325,
'ArticleID' => '2',
'ArticleType' => 'phone',
'ArticleTypeID' => '5',
'Body' => 'sdsdsdds',
'Cc' => '',
'Changed' => '2016-03-08 13:02:27',
'Charset' => 'utf-8',
'ContentCharset' => 'utf-8',
'ContentType' => 'text/plain; charset=utf-8',
'CreateTimeUnix' => '1457438342',
'Created' => '2016-03-08 12:59:02',
'CreatedBy' => '2',
'CustomerID' => 'KD_00001',
'CustomerUserID' => 'KD_Nachname@localhost.local',
'EscalationResponseTime' => '0',
'EscalationSolutionTime' => '0',
'EscalationTime' => '0',
'EscalationUpdateTime' => '0',
'From' => '"KD_Vorname KD_Nachname" <KD_Nachname@localhost.local>,',
'FromRealname' => 'KD_Vorname KD_Nachname',
'InReplyTo' => '',
'IncomingTime' => '1457438342',
'Lock' => 'lock',
'LockID' => '2',
'MessageID' => '',
'MimeType' => 'text/plain',
'Owner' => 'admin',
'OwnerID' => '2',
'Priority' => '3 normal',
'PriorityID' => '3',
'Queue' => 'Misc',
'QueueID' => '4',
'RealTillTimeNotUsed' => '0',
'References' => '',
'ReplyTo' => '',
'Responsible' => 'root@localhost',
'ResponsibleID' => '1',
'SLA' => '',
'SLAID' => undef,
'SenderType' => 'customer',
'SenderTypeID' => '3',
'Service' => '',
'ServiceID' => undef,
'State' => 'open',
'StateID' => '4',
'StateType' => 'open',
'Subject' => 'Test 1',
'TicketID' => '2',
'TicketNumber' => '2016030801000011',
'Title' => 'Test 1',
'To' => 'Misc',
'ToRealname' => 'Misc',
'Type' => 'Incident',
'TypeID' => '2',
'UntilTime' => 0
},
{
'Age' => 3325,
'AgeTimeUnix' => 3120,
'ArticleID' => '4',
'ArticleType' => 'note-external',
'ArticleTypeID' => '10',
'Body' => 'Was will ich wissen',
'Cc' => '',
'Changed' => '2016-03-08 13:02:27',
'Charset' => 'utf-8',
'ContentCharset' => 'utf-8',
'ContentType' => 'text/plain; charset=utf-8',
'CreateTimeUnix' => '1457438342',
'Created' => '2016-03-08 13:02:27',
'CreatedBy' => '2',
'CustomerID' => 'KD_00001',
'CustomerUserID' => 'KD_Nachname@localhost.local',
'EscalationResponseTime' => '0',
'EscalationSolutionTime' => '0',
'EscalationTime' => '0',
'EscalationUpdateTime' => '0',
'From' => '"admin admin" <admin@admin.local.de>',
'FromRealname' => 'admin admin',
'InReplyTo' => '',
'IncomingTime' => '1457438547',
'Lock' => 'lock',
'LockID' => '2',
'MessageID' => '',
'MimeType' => 'text/plain',
'Owner' => 'admin',
'OwnerID' => '2',
'Priority' => '3 normal',
'PriorityID' => '3',
'Queue' => 'Misc',
'QueueID' => '4',
'RealTillTimeNotUsed' => '0',
'References' => '',
'ReplyTo' => '',
'Responsible' => 'root@localhost',
'ResponsibleID' => '1',
'SLA' => '',
'SLAID' => undef,
'SenderType' => 'agent',
'SenderTypeID' => '1',
'Service' => '',
'ServiceID' => undef,
'State' => 'open',
'StateID' => '4',
'StateType' => 'open',
'Subject' => 'Anfrage an KD über externe Notiz',
'TicketID' => '2',
'TicketNumber' => '2016030801000011',
'Title' => 'Test 1',
'To' => '',
'Type' => 'Incident',
'TypeID' => '2',
'UntilTime' => 0
}
],
'ChangeBy' => '2',
'Changed' => '2016-03-08 13:02:27',
'CreateBy' => '2',
'CreateTimeUnix' => '1457438342',
'Created' => '2016-03-08 12:59:02',
'CustomerID' => 'KD_00001',
'CustomerUserID' => 'KD_Nachname@localhost.local',
'EscalationResponseTime' => '0',
'EscalationSolutionTime' => '0',
'EscalationTime' => '0',
'EscalationUpdateTime' => '0',
'GroupID' => '1',
'Lock' => 'lock',
'LockID' => '2',
'Owner' => 'admin',
'OwnerID' => '2',
'Priority' => '3 normal',
'PriorityID' => '3',
'Queue' => 'Misc',
'QueueID' => '4',
'RealTillTimeNotUsed' => '0',
'Responsible' => 'root@localhost',
'ResponsibleID' => '1',
'SLAID' => '',
'ServiceID' => '',
'State' => 'open',
'StateID' => '4',
'StateType' => 'open',
'TicketID' => '2',
'TicketNumber' => '2016030801000011',
'Title' => 'Test 1',
'Type' => 'Incident',
'TypeID' => '2',
'UnlockTimeout' => '1457438547',
'UntilTime' => 0
}
]
};
Outgoing data after mapping (2016-03-08 13:54:27, debug)
$VAR1 = {
'Ticket' => [
{
'Age' => 3325,
'ArchiveFlag' => 'n',
'Article' => [
{
'Age' => 3325,
'AgeTimeUnix' => 3325,
'ArticleID' => '2',
'ArticleType' => 'phone',
'ArticleTypeID' => '5',
'Body' => 'sdsdsdds',
'Cc' => '',
'Changed' => '2016-03-08 13:02:27',
'Charset' => 'utf-8',
'ContentCharset' => 'utf-8',
'ContentType' => 'text/plain; charset=utf-8',
'CreateTimeUnix' => '1457438342',
'Created' => '2016-03-08 12:59:02',
'CreatedBy' => '2',
'CustomerID' => 'KD_00001',
'CustomerUserID' => 'KD_Nachname@localhost.local',
'EscalationResponseTime' => '0',
'EscalationSolutionTime' => '0',
'EscalationTime' => '0',
'EscalationUpdateTime' => '0',
'From' => '"KD_Vorname KD_Nachname" <KD_Nachname@localhost.local>,',
'FromRealname' => 'KD_Vorname KD_Nachname',
'InReplyTo' => '',
'IncomingTime' => '1457438342',
'Lock' => 'lock',
'LockID' => '2',
'MessageID' => '',
'MimeType' => 'text/plain',
'Owner' => 'admin',
'OwnerID' => '2',
'Priority' => '3 normal',
'PriorityID' => '3',
'Queue' => 'Misc',
'QueueID' => '4',
'RealTillTimeNotUsed' => '0',
'References' => '',
'ReplyTo' => '',
'Responsible' => 'root@localhost',
'ResponsibleID' => '1',
'SLA' => '',
'SLAID' => undef,
'SenderType' => 'customer',
'SenderTypeID' => '3',
'Service' => '',
'ServiceID' => undef,
'State' => 'open',
'StateID' => '4',
'StateType' => 'open',
'Subject' => 'Test 1',
'TicketID' => '2',
'TicketNumber' => '2016030801000011',
'Title' => 'Test 1',
'To' => 'Misc',
'ToRealname' => 'Misc',
'Type' => 'Incident',
'TypeID' => '2',
'UntilTime' => 0
},
{
'Age' => 3325,
'AgeTimeUnix' => 3120,
'ArticleID' => '4',
'ArticleType' => 'note-external',
'ArticleTypeID' => '10',
'Body' => 'Was will ich wissen',
'Cc' => '',
'Changed' => '2016-03-08 13:02:27',
'Charset' => 'utf-8',
'ContentCharset' => 'utf-8',
'ContentType' => 'text/plain; charset=utf-8',
'CreateTimeUnix' => '1457438342',
'Created' => '2016-03-08 13:02:27',
'CreatedBy' => '2',
'CustomerID' => 'KD_00001',
'CustomerUserID' => 'KD_Nachname@localhost.local',
'EscalationResponseTime' => '0',
'EscalationSolutionTime' => '0',
'EscalationTime' => '0',
'EscalationUpdateTime' => '0',
'From' => '"admin admin" <admin@admin.local.de>',
'FromRealname' => 'admin admin',
'InReplyTo' => '',
'IncomingTime' => '1457438547',
'Lock' => 'lock',
'LockID' => '2',
'MessageID' => '',
'MimeType' => 'text/plain',
'Owner' => 'admin',
'OwnerID' => '2',
'Priority' => '3 normal',
'PriorityID' => '3',
'Queue' => 'Misc',
'QueueID' => '4',
'RealTillTimeNotUsed' => '0',
'References' => '',
'ReplyTo' => '',
'Responsible' => 'root@localhost',
'ResponsibleID' => '1',
'SLA' => '',
'SLAID' => undef,
'SenderType' => 'agent',
'SenderTypeID' => '1',
'Service' => '',
'ServiceID' => undef,
'State' => 'open',
'StateID' => '4',
'StateType' => 'open',
'Subject' => 'Anfrage an KD über externe Notiz',
'TicketID' => '2',
'TicketNumber' => '2016030801000011',
'Title' => 'Test 1',
'To' => '',
'Type' => 'Incident',
'TypeID' => '2',
'UntilTime' => 0
}
],
'ChangeBy' => '2',
'Changed' => '2016-03-08 13:02:27',
'CreateBy' => '2',
'CreateTimeUnix' => '1457438342',
'Created' => '2016-03-08 12:59:02',
'CustomerID' => 'KD_00001',
'CustomerUserID' => 'KD_Nachname@localhost.local',
'EscalationResponseTime' => '0',
'EscalationSolutionTime' => '0',
'EscalationTime' => '0',
'EscalationUpdateTime' => '0',
'GroupID' => '1',
'Lock' => 'lock',
'LockID' => '2',
'Owner' => 'admin',
'OwnerID' => '2',
'Priority' => '3 normal',
'PriorityID' => '3',
'Queue' => 'Misc',
'QueueID' => '4',
'RealTillTimeNotUsed' => '0',
'Responsible' => 'root@localhost',
'ResponsibleID' => '1',
'SLAID' => '',
'ServiceID' => '',
'State' => 'open',
'StateID' => '4',
'StateType' => 'open',
'TicketID' => '2',
'TicketNumber' => '2016030801000011',
'Title' => 'Test 1',
'Type' => 'Incident',
'TypeID' => '2',
'UnlockTimeout' => '1457438547',
'UntilTime' => 0
}
]
};
You do not have the required permissions to view the files attached to this post.
Locked