You are hereForums / JDF Generally / Common JDF Questions / MIME problem
MIME problem
Can any tell me what I´m doing wring when trying to send a MIME message to a JDF device (Esko JDF server).
It all works when sending just a JMF command e.g <JMF xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.CIP4.org/JDFSchema_1_1" SenderID="JMFsender" TimeStamp="2012-02-13T10:31:52+01:00" Version="1.3"><Command ID="M001" Type="OpenQueue" xsi:type="CommandOpenQueue" /></JMF>.
But I cant get the MIME message to work. I´m using HTTP POST to the server and not hotfolder.
Here is a example of the message:
Message-ID: <1781436873.01329125527548.JavaMail.digi@RSTWS7>
MIME-Version: 1.0
Content-Type: multipart/related;
boundary="----=_Part_1_81511287.1329125512844"
------=_Part_1_81511287.1329125512844
Content-Type: application/vnd.cip4-jmf+xml
Content-Transfer-Encoding: 8bit
Content-ID: <SubmitQueueEntry.jmf>
Content-Disposition: attachment; filename=SubmitQueueEntry.jmf
<?xml version="1.0" encoding="UTF-8"?>
<JMF SenderID="JMFsender" TimeStamp="2012-02-13T10:31:52+01:00" Version="1.3" xmlns="http://www.CIP4.org/JDFSchema_1_1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Command ID="M001" Type="SubmitQueueEntry" xsi:type="CommandSubmitQueueEntry">
<QueueSubmissionParams ReturnJMF="" URL="cid:TESTING.jdf"/>
<QueueFilter MaxEntries="4" QueueEntryDetails="Brief"/>
</Command>
</JMF>
------=_Part_1_81511287.1329125512844
Content-Type: application/vnd.cip4-jdf+xml
Content-Transfer-Encoding: 8bit
Content-ID: <TESTING.jdf>
Content-Disposition: attachment; filename=TESTING.jdf
<?xml version="1.0" encoding="UTF-8"?>
<JDF>
'Here goes JDF...'
</JDF>
------=_Part_1_81511287.1329125512844--
I get this response from the JDF device:
HTTP ERROR: 400
Fatal error in the Parser:Content is not allowed in prolog.
Thanks in advance
Pontus


