How to read the message source I/O from below message header.
{1:F01SHLLGB20ATOL0000000000}{2:I103CHASGB20XXXXN}{4:
I validated 103.txt against swift MT103.xsd...could not find either I or O
tags to read.
Regards,
Raj..the King!
Here, I=inbound and O=Outbound.
I need to read Inbound(I) and Outbound(O) from swift mesage
header{2:I103CHASGB20XXXXN} or {2:O103CHASGB20XXXXN}
Regards,
I have never done this before but here is how you could approach:
Value for "{2:I" or "{2:I" is not maintained in any element within the XSD.
However, there are seperate records within XSD to maintain input and output
header information.
You can see two seperate records "ApplicationHeaderBlock_Input" and
"ApplicationHeaderBlock_Output" under "SWIFTHeader".
Now... if you promote one element (anyone) within each record - based on
which element is populated you will know if the input message is I/O SWIFT
message.
Hope this helps...
Please respond back with what worked for you.
Cheers,
Jay Kinker__
I tried with all the elements under ApplicationHeaderBlock_Input and
ApplicationHeaderBlock_Output records, however couldnot able to read
Inbound(I) or Outbound(O) from the swift header.
Regards,
Lingaraj
As I mentioned in my previous response that value "{2:I" or "{2:O" is not
maintained in any elements. So, won’t be able to get these values from any
element.
However, there are separate records "ApplicationHeaderBlock_Input" and
"ApplicationHeaderBlock_Output" under "SWIFTHeader". I gave an approach (a
work around) on how you can get to know about Inbound/Outbound message due to
this structure.
So now….
If element “MessageType “, “DestinationAddress” or any other element within
"ApplicationHeaderBlock_Input" is populated means that the SWIFT message is
Inbound message
If element “MessageType “, “InputTime” or any other element within
"ApplicationHeaderBlock_Output" is populated means that the SWIFT message is
Outbound message
Cheers,
Jay Kinker__
http://geekswithblogs.net/jaykinker
-----------------------------------------------------------