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 root tag within multipart message for SWIFT

Post new topic  Reply to topic
 XML root tag within multipart message for SWIFT « View previous topic :: View next topic » 
Author Message
m.schneider
PostPosted: Tue Jul 03, 2007 11:40 pm    Post subject: XML root tag within multipart message for SWIFT Reply with quote

Centurion

Joined: 10 Apr 2007
Posts: 132
Location: Germany

Hello,

I'm parsing a SWIFT message, pick the fields that I need and generate a new XML message (SWIFT_msg) that I have defined as a message set.

The SWIFT message is a multipart message with an envelope and payload. The message type gets interpreted at running time. A field within the envelope is defined as: Interpret value as message identity

Problem is that I get <SwiftEnvelope> as a root tag. I would expect <SWIFT_msg>.

Within ESQL I define SWIFT_msg as output message type:
SET OutputRoot.Properties.MessageType = 'SWIFT_msg';

And in the message set I also defined "SWIFT_msg" as root tag name.

I still get the following output message:

<?xml version="1.0"?>
<MRM xmlns="www.mrmnames.net/NPN8PNS002001">
<SwiftEnvelope>
<status>0</status>
<msg_type>541</msg_type>
...
</SwiftEnvelope>
</MRM>


But I need:
<?xml version="1.0"?>
<MRM xmlns="www.mrmnames.net/NPN8PNS002001">
<Swift_msg>
<status>0</status>
...
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Jul 04, 2007 12:19 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
...new XML message (SWIFT_msg) that I have defined as a message set.
Have you defined a message with name 'SWIFT_msg' within that message set?

Quote:
And in the message set I also defined "SWIFT_msg" as root tag name
That's a very bad idea. The Root Tag Name property is deprecated. In v2.1 it was used to 'hide' the outer level of a message. You should always set it to "" ( empty string ) and leave it that way.
Back to top
View user's profile Send private message
m.schneider
PostPosted: Wed Jul 04, 2007 12:29 am    Post subject: Reply with quote

Centurion

Joined: 10 Apr 2007
Posts: 132
Location: Germany

No I defined a separate message set with SWIFT_msg.

I found a work around, I changed the message "SwiftEnvelope" properties/Field identification/xml name to SWIFT_msg. It is not really a clean way, ... but works for me at the moment, ...
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 » XML root tag within multipart message for SWIFT
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.