Error parsing Invoker-respons

Moderator: crythias

Locked
dionysius
Znuny newbie
Posts: 2
Joined: 14 Sep 2012, 14:23
Znuny Version: 3.1.10

Error parsing Invoker-respons

Post by dionysius »

For my OTRS-setup I have an Invoker which logs every closing of tickets.

In the response I have the log entry-id which I save in a Dynamic Field. This is done correctly.

Unfortunately, in the otrs.log file, I keep seeing the following messages:

Code: Select all

[Mon Sep 17 11:00:22 2012][Error][Kernel::System::Main::_Dump][841] Unknown ref 'Struct'!
[Mon Sep 17 11:00:23 2012][Notice][Kernel::Scheduler::TaskHandler::GenericInterface::Run] GenericInterface task executed correctly!
When I set the webservice debugging to Debug I can see the following item 'Struct':

Code: Select all

Incoming data before mapping (2012-09-17 11:00:22.000, debug)
$VAR1 = {
  'return' => bless( {
    'ArticleID' => '17120',
    'Respons' => 'OK',
    'ResponsMessage' => '9836'
  }, 'Struct' )
};
When I check the received XML it shows as follows:

Code: Select all

<soap-env:envelope soap-env:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:body>
<xmlns:Logresponse>
<return xsi:type="SOAP-ENC:Struct">
<articleid xsi:type="xsd:string">17120</articleid>
<respons xsi:type="xsd:string">OK</respons>
<responsmessage xsi:type="xsd:string">9836</responsmessage>
</return>
</xmlns:Logresponse>
</soap-env:body>
</soap-env:envelope>
I personally think that the "Struct" in the Bless() (in the data before mapping) is causing this error, but I am unaware how to fix this issue.
Where can/should I start? Is this a bug, that the XML cannot be parsed correctly?
Windows Server 2008 R2 - MS SQL 2008 R2 - OTRS 3.1.10
Locked