parse ofx request response

OFX, Open Financial Exchange, files are used for exchanging financial information. It is used in client-server as well as Cloud-based systems. So the request-response model is used for exchanging financial information. Let us learn the OFX request and response:

Parse OFX Request and Response – C# API Installation

Aspose.Finance for .NET API supports several features for processing and parsing financial data. You can download it from the Downloads section or install via NuGet gallery with the following command:

PM> Install-Package Aspose.Finance

Moreover, the evolution of OFX is worth mentioning here. OFX version 1 through 1.6 is based on SGML syntax. The later versions rely on XML specifications. For better understanding, we will create OFX request and response files in both formats (1.03 & 2.2).

Create OFX Request Programmatically using C#

OFX protocol is a standard for a two-way exchange of financial data. You can easily create a request by following the steps below:

  1. Initialize Ofx Request Document object
  2. Create Sign on Request instance
  3. Set different properties
  4. Save OFX request in 1.03 and 2.2 format

The code snippet below explains how to create OFX Request programmatically using C# language:

Create OFX Response Programmatically with C#

You can create an OFX response in .NET based applications programmatically using C#. The following steps explain OFX response creation process:

  1. Initialize Ofx Response Document class object
  2. Declare Sign on Response and set values
  3. Save response with Ofx Version Enum Enumeration

The following code snippet shows how to create OFX response programmatically using C#:

Conclusion

OFX standard is platform-independent so the users can choose the system environment or platform to use financial processing features. It enables the banks, brokerages, and payroll processing companies to create tailored solutions. You can get in touch via the Free Support Forum. We will be glad to help you!

See Also