Преобразование OFX файлов запросов и ответов в C# API
Contents
[
Hide
]
Aspose.Finance for .NET поддерживает преобразование OFX файлов запросов и ответов между форматами 1.03 и 2.2. В следующих примерах C# показано преобразование файлов запросов и ответов OFX из формата 1.03 в формат 2.2 с использованием файла API.
Преобразование файла запроса OFX из формата 1.03 в формат 2.2 в формате .NET
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-finance/Aspose.Finance-for-.NET | |
// Working directories | |
string sourceDir = RunExamples.Get_SourceDirectory(); | |
string outputDir = RunExamples.Get_OutputDirectory(); | |
OfxRequestDocument document = new OfxRequestDocument(sourceDir + @"bankTransactionReq.sgml"); | |
document.Save(outputDir + @"bankTransactionReq.xml", OfxVersionEnum.V2x); |
Преобразование файла ответов OFX из формата 1.03 в формат 2.2 в формате .NET
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-finance/Aspose.Finance-for-.NET | |
// Working directories | |
string sourceDir = RunExamples.Get_SourceDirectory(); | |
string outputDir = RunExamples.Get_OutputDirectory(); | |
OfxResponseDocument document = new OfxResponseDocument(sourceDir + @"bankTransactionRes.sgml"); | |
document.Save(outputDir + @"bankTransactionRes.xml", OfxVersionEnum.V2x); |