My query in PERL:
my $ArticleObject = $Kernel::OM->Get('Kernel::System::Ticket::Article');
my $ArticleBackendObject = $ArticleObject->BackendForArticle( TicketID => 12345, ArticleID => 54321 );
my %Article = $ArticleBackendObject->ArticleGet (
TicketID => 12345,
ArticleID => 54321,
);
my $bodyCopy = $Article{'Body'};
When I use $bodyCopy in the creation of the article of a new ticket, I get a 500 Internal Server error. The error_log reports the following:
Error deserializing message:not well-formed (invalid token) at line 29, column 39, byte 1179 at /usr/lib64/perl5/vendor_perl/XML/Parser.pm line 187..
RemoteAddress: 127.0.0.1
RequestURI: /otrs/nph-genericinterface.pl/Webservice/GenericTicketConnector
If I print out the XML of the TicketCreate, it looks correct. If I remove $bodyCopy - the ticket creates fine with the article having no body.
Can someone point me to the process to "deserialize" the Body content I'm getting from ArticleGet? Hints appreciated!
