Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7524073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:59:07+00:00 2026-05-30T02:59:07+00:00

I’m using the excellent OpenIso8583Net to send/receive ISO messages. However, since every organization has

  • 0

I’m using the excellent OpenIso8583Net to send/receive ISO messages. However, since every organization has its own definition and customization, I want to be able to customoize the format with as little touch to the projects’ source as possible to be able to upgrade to new versions more easily.
So here are three customizations I am facing right now:

  • How can I make Bitmap to use AsciiFormatter instead of BinaryFormatter? since bitmap is a private field of AMessage class, I cannot access it even if I directly derive a new custom class from AMessage. And the constructor uses BinaryFormatter by default. Currently, I have modified Bitmap.cs parameterless constructor to use AsciiFormatter.
  • Same story goes for variable length formatter. It uses AsciiFormatter by default. But I’d like it to use BcdFormatter. I have Modified this part to use BcdFormatter by default in VariableLengthFormatter.
    I’d appreciate if anyone shows me a better way to handle these customizations by extending, not modifying.
  • Suppose I want to display fields in a log file. An example would be what I have displayed at Generating MAC by encrypting data in the Fields section. Right now, I have to make Template property public and use the following snippet:

    for (var i = 2; i

How can I access the fields without making the Template public? I want to access the Display method of fields in my main program for logging purposes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T02:59:09+00:00Added an answer on May 30, 2026 at 2:59 am

    I have just made changes to the project to allow this. As of version 0.5.0 (Update your NuGet package)

    Bitmap Formatter

    You can set the bitmap formatter in the Template for your message class. Here is some sample code:

    public class AsciiIsoMsg : Iso8583
    {
        // First you need to customise the template
        // The message 
        private static readonly Template template;
    
        static AsciiIsoMsg()
        {
            // Get the default template for the Iso8583 class
            template = GetDefaultIso8583Template();
            // change the bitmap formatter
            template.BitmapFormatter = new AsciiFormatter();
        }
    
        // override the base class using the template and you will be using the bitmap formatter
        public AsciiIsoMsg():base(template)
        {
    
        }
    }
    

    Set Length Formatter of a field

    In the static AsciiIso() method, if you modify in this manner, you’ll change field 2 to use a BCD length formatter:

    // Set field 2 to use BCD formatter
    template[2] = FieldDescriptor.BcdVar(2, 19, Formatters.Bcd);
    

    Log File

    To display the message in the log file, use the .ToString() method on the message class, e.g.

    var msg = new AsciiIsoMsg();
    msg.MessageType = Iso8583.MsgType._0200_TRAN_REQ;
    msg[3] = "010000";
    Console.WriteLine(msg.ToString());
    

    Which gives:

    0200:
       [Fixed    n         6 0006] 003 [010000]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
In my XML file chapters tag has more chapter tag.i need to display chapters

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.