How to encode data for iso 8583 for C # socket transfer

I don’t understand how to send data via C # socket.send (byte []), I mean, they say that I need to send 0800 (network management request) for an echo test, how to convert. Please, I programmed for a while, but I do not understand the instructions.

thank

+3
source share
4 answers

First of all, you need to understand the message format of ISO8583 . For echo testing messages in revision 87, your MTID must be 0800, and field 70, the network management information code, must be set to 301, which indicates an echo test.

ISO . ( ) OpenIso8583.Net, / .Net, ISO,

+5

, ; , - , ISO8583, . , ISO8583 , , .

ISO8583 #, , . . ( ) , .

, .

+1

, - , . Socket , , Encoding . Wikipedia:

byte[] echo = System.Text.Encoding.ASCII.GetBytes("0100");
socket.Send(echo);

Disclaimer: I never had to implement ISO 8583, and the link I was looking at is not clear if the codes were actually simple ASCII characters (although I'm sure they are). I hope someone more familiar with the standard will clarify or confirm this assumption.

0
source
            //***************additional encoders***************
            UnicodeEncoding encoderUnicode = new UnicodeEncoding();
            UTF32Encoding encoder32 = new UTF32Encoding();
            UTF7Encoding encoder7 = new UTF7Encoding();
            UTF8Encoding encoder8 = new UTF8Encoding();
            //*************end of additionals*************

            ASCIIEncoding encoder = new ASCIIEncoding();

about the parser, do some google on iso 8583, preferably 2003

0
source

Source: https://habr.com/ru/post/1778883/


All Articles