how to encode data for iso 8583 to transfer socket c#

Franco Ordoñez picture Franco Ordoñez · Dec 7, 2010 · Viewed 7.8k times · Source

I don't understand exactly how to send data over c# socket.send( byte[]), I mean they say I need to send 0800 (Network Management Request) for an echo test, how to convert. Please I've been programming for a while but I don't understand the instructions.

Thanks

Answer

John Oxley picture John Oxley · Feb 14, 2011

First of all you need to have an understanding of the ISO8583 message format. For echo test messages, in the 87 revision, your MTID should be 0800 and field 70, the Network Management Information code, should be set to 301, indicating echo test.

Building an ISO message is quite tricky. (shameless plug coming up) I have released OpenIso8583.Net, a message parser/builder for .Net which can be extended into the particular flavor of ISO you are using