Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 881
  • Last Modified:

SWIFT (XML) messages in Delphi

I wouuld llike to write an app that sends, receives and parses swift messages (which are essentially XML messages) over a network. How do I do this? I hope somebody has done this in delphi before. I would love a solution that can be done in D6 or D7 enterprise.
0
Goodangel Matope
Asked:
Goodangel Matope
2 Solutions
 
2266180Commented:
well, I never heard of swift before, but since you say it's xml, guess you could just use simple xml parsing using some xml component you prefer. Delphi has TXMLDocument .
but better pick your choise. here is a list of articles/parser/components: http://delphi.about.com/od/objectpascalide/l/aa072500a.htm
see which one best suits your needs.
0
 
Wim ten BrinkCommented:
I've heard of SWIFT but have no experience with their XML formats. I do have some experience with EDI formats that are used by several Dutch banks.

Your problem consist of two parts, btw. First you need to know how to read and write those XML formats. The easiest thing to do would be to get access to the XML Schema of the Swift XML format. (Must be an XSD file.) This file can then be converted by Delphi's XML wizard in some code that will allow you to work with these formats. Unfortunately Borland implemented some errors in some XML datatypes, which affects any time-related type and the Boolean type. Borland uses the wrong date/time format for timestamps. Furthermore, booleans in XML are supposed to be all lowercase. Borland writes them with the first letter in uppercase. Thus True/False instead of true/false.

The second part is the communications part. For this you might use the Indy components to set up a TCP/IP connection. But it also means you need to know the protocol that is required for this communication. Is it simple FTP or more like SOAP? Or maybe something else?

People must have done this before but I wonder if the information about the XML schema or the communication protocol is freely available.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now