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 » toBitstream API

Post new topic  Reply to topic
 toBitstream API « View previous topic :: View next topic » 
Author Message
PEPERO
PostPosted: Sun Sep 09, 2012 11:16 pm    Post subject: toBitstream API Reply with quote

Disciple

Joined: 30 May 2011
Posts: 177

Hi all;
When using the toBitstream java API against an XMLNSC message body , all the element names and values would be serialized. is it possible to have only the element values ?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Sep 10, 2012 12:00 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The XMLNSC parser produces only XML documents.

What you're asking for would not be an XML document.

So you need to construct an MRM or DFDL model and use that instead of the XMLNSC parser.
Back to top
View user's profile Send private message
PEPERO
PostPosted: Mon Sep 10, 2012 12:11 am    Post subject: Reply with quote

Disciple

Joined: 30 May 2011
Posts: 177

Even using the MRM , the serializing would be made at the physical message format when it is propagated. i mean using the toBitstream API against an MRM message tree would have also the element names.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Sep 10, 2012 12:42 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
i mean using the toBitstream API against an MRM message tree would have also the element names.
Why do you think that?
Back to top
View user's profile Send private message
PEPERO
PostPosted: Mon Sep 10, 2012 2:09 am    Post subject: Reply with quote

Disciple

Joined: 30 May 2011
Posts: 177

Sorry. I was making a mistake. I was using the XML message format in calling the toBiststream method and when i changed it to use the Binary , it has been fixed.
Thanks for the helps.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Sep 10, 2012 2:48 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
I was using the XML message format in calling the toBiststream method and when i changed it to use the Binary , it has been fixed.
Here's a tip for you. Delete the XML physical format from your message set. In a new message flow you should never parse or write XML using the MRM parser - use XMLNSC for that.

btw, XMLNSC does not use the physical format information in a message set. That's for MRM only. XMLNSC uses the logical ( xsd ) information only.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » toBitstream API
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.