SOAP: ArticleAttachment method

Moderator: crythias

Locked
rajil
Znuny newbie
Posts: 2
Joined: 05 Feb 2011, 07:29
Znuny Version: 2.4.5

SOAP: ArticleAttachment method

Post by rajil »

Hi;

I would like to access ArticleAttachment method using SOAP. When i try to get the article body stored as HTML in FileSystem i am getting following error.

-----------------------------------------------------------------------------------------------------------------------------------------------------------
ERROR: 'Open quote is expected for attribute "{1}" associated with an element type "name".'
Feb 5, 2011 11:04:58 AM com.sun.xml.internal.messaging.saaj.soap.EnvelopeFactory createEnvelope
SEVERE: SAAJ0511: Unable to create envelope from given source
Exception in thread "main" com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
at com.sun.xml.internal.messaging.saaj.soap.EnvelopeFactory.createEnvelope(Unknown Source)
at com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEnvelopeFromSource(Unknown Source)
at com.sun.xml.internal.messaging.saaj.soap.SOAPPartImpl.getEnvelope(Unknown Source)
at com.applied.otrs.test.SOAPTest.getAttachment(SOAPTest.java:198)
-----------------------------------------------------------------------------------------------------------------------------------------------------------

I am using FileSystem to store articles and attachments. I am able to get plain text body using get article method but i want to access html format not plain test that is stored as file. I am able to list the files using artile list method but when i try to get the html part using ArticleAttachment method i am getting error in while SOAP call.

Actually, i tried to debug the source, i put debug statements in ArticleAttachment method and i came to know that i find HTML body and i also have printed the same in log. It also executes statement "return %Data;" in ArticleStorageFS.pm. But when the response comes it shows above error.

Can anybody suggest how to get the HTML body stored in FileSystem using SOAP method??
Locked