Posted: Tue Jul 03, 2007 11:40 pm Post subject: XML root tag within multipart message for SWIFT
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.
...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.
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, ...
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