ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML-Parsing Error

Post new topic  Reply to topic
 XML-Parsing Error « View previous topic :: View next topic » 
Author Message
hopfe_de
PostPosted: Thu Jul 24, 2003 3:02 am    Post subject: XML-Parsing Error Reply with quote

Acolyte

Joined: 03 Mar 2002
Posts: 58
Location: Frankfurt, Germany

I get my Data in Messags with these structure.
Code:
<Message>
 <MailFrom>gast</MailFrom>
 <MailTo>hopfe/MailTo>
 <MailCC>hopfe</MailCC>
 <MailBcc>test</MailBcc>
 <MailBody>This is my Mailbody</MailBody>
 <MailAttachment>
   <AttachmentFilename>test.png</AttachmentFilename>
   <AttachmentData>[binarydata]</AttachmentData>
 </MailAttachment>
</Message>

Everytime i try to read a message with a binary Attachment, i get an XML parsing error.

Thx,
Hopfe

The MQInputNode uses XML as Messagedomain.
Back to top
View user's profile Send private message Send e-mail AIM Address
Michael Dag
PostPosted: Thu Jul 24, 2003 3:24 am    Post subject: Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2607
Location: The Netherlands (Amsterdam)

Try:
<AttachmentData><![CDATA[binarydata]]></AttachmentData>

Also search for CDATA on this board for more details
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
hopfe_de
PostPosted: Thu Jul 24, 2003 4:20 am    Post subject: Reply with quote

Acolyte

Joined: 03 Mar 2002
Posts: 58
Location: Frankfurt, Germany

Thanx for these Tip, CDATA works fine with HTML and XML Attachments, but i still get an error
Code:
(Unterminated CDATA Section) or
Invalid character (Unicode: 0x1A))
when i try to send a png or jpg-file.
Back to top
View user's profile Send private message Send e-mail AIM Address
jefflowrey
PostPosted: Thu Jul 24, 2003 5:02 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Even in CDATA, certain characters are not allowed in order for the XML parser to work.

Maybe you should keep your binary paylod encoded as Base64 instead?
Back to top
View user's profile Send private message
hopfe_de
PostPosted: Wed Jul 30, 2003 2:46 am    Post subject: Reply with quote

Acolyte

Joined: 03 Mar 2002
Posts: 58
Location: Frankfurt, Germany

After converting the Data to base64 it works without problems.

Thanks.
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML-Parsing Error
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.