#1 Re: mORMot 1 » Use Json Library standalone » 2015-12-25 06:43:31

Thanks Boss,
I may be not qualified to say what a powerful framework you have built.
I just tried my hands at below code and I have an idea how I am going to solve the issue I have in my project.

   TDocVariant.New(JsonObject);
   JsonObject.SessionDate := '01012016';
   JsonObject.TotalItemsCount := 29;
   JsonObject.TotalItemsValue := 290.87;
   JsonObject.Transactions := _Arr([]);
   for i := 0 to 100 - 1 do
   begin
     TDocVariant.New(anElement);
      anElement.ItemName := 'item ' + IntToStr(i);
      anElement.ItemPrice := 10*i;
     JsonObject.Transactions.Add(anElement);
   end;
   Memo1.Lines.Text := JsonObject;

The only issue I have in using this framework is the documentation is not simplified to get one up and going.
The appeal I am making is that, can we have a getting started sort of document.
This is key because it will ease the early pains of adopting the framework.
I have tried so many times to use the framework but to no avail.
But I have been able to adopt Java frameworks such as SparkJava and Dropwizard
in a matter of 2 hours mainly because the documentation is very simplified.

Thanks.
I sincerely hope I can you this framework in my next project where I shall convert an Old Asta based  server to Mormot

#2 mORMot 1 » Use Json Library standalone » 2015-12-24 14:55:27

AArhin
Replies: 6

Hi Dear All,
      I want to use the Json library as a standalone unit in my project.
I am using D2007 and would want some help in creating , reading and parsing individual data elements json data.
Particularly how to create Json Array types in code without a seed data aka { "items": [...]}.
Trying to migrate my data transfer format from xml to json.

Thanks

#4 mORMot 1 » mORMot REST Framework » 2015-06-25 07:18:26

AArhin
Replies: 2

Hi,
  How can I use only the Rest framework of mORMot ?
I have a Data Model layer already(ORM - TMS Aurelius) and will like to plug that in to SOA and Rest Framework.
How do I go about doing this. Samples and code snippets are highly welcomed.
Thanks

#5 mORMot 1 » Logging » 2014-10-17 16:59:44

AArhin
Replies: 12

Hi,
   Is it possible to redirect server logging to a memo control on server main form ?

#7 mORMot 1 » Server App Samples » 2014-10-06 17:50:08

AArhin
Replies: 2

Dear All,
           I have just been looking at samples that are bundled with  this framework.
And have noticed that they are all implemented as console applications.
I am wondering if there is a particular reason for this ?
I intend to use this framework for a new application and I need to have the server implemented as Windows service with a GUI.
That has full app logging.
Actually I am looking at the possibility of using this framework for a document management system.
Any insights is highly welcomed.

Thanks

#8 Re: mORMot 1 » Need help to kick Start my project » 2013-12-30 16:55:57

Let me put the app in context. There is an Asta based multi tier app that has been running for more than 10 yrs now.
The client is changing their core app (CBS) to a new one that external apps can interface with using a custom defined message format or iso8583.
Now I figure that instead each client app issuing transactions directly to the core app, I would rather design a web service that clients could forward their transactions to in the form of a string in xml format as posted above.
The web service will then post each transaction to the CBS in the desired format via sockets (indy blocking) and receive each posting result format them as xml data and send them back to the client.

That basically is my design.

I am open to alternatives that will not mean I need to do a lot more changes to the client apps.

thanks

#9 Re: mORMot 1 » Need help to kick Start my project » 2013-12-30 15:24:11

Thanks for the quick response.

I am very much prepared to switch to JASON that is why I am here.
I would like to create a gui based server that can run as stand alone app or service app for starters.
I do not intend to use any database operations.
Actually this  server will act like a sort of proxy to service request / response to an external application using socket commands.

Any pointers to classes to use and gotchas ?

Thanks

#10 mORMot 1 » Need help to kick Start my project » 2013-12-30 14:24:53

AArhin
Replies: 5

Dear All,
       I stumbled upon this project whilst looking for alternatives to web services in Delphi 2007.
I need to write a web service that takes a list of transactions in xml format in the form of a string
process them and return the results same as xml string.

Below is a  sample input string :

<Transactions TransactionsCount="1180" TransactionsTotal="36781597.68">
<Transaction TransactionIDX="29066" TransactionType="DB" MessageType="CCC">
<AccountNumber>1000200486301</AccountNumber>
<Amount>11306.00</Amount>
<SerialNumber>129343</SerialNumber>
<Narration>Chq# 129343 ifo </Narration>
<TransactionCode>02</TransactionCode>
<Currency>GHS</Currency>
<BranchSortCode>050902</BranchSortCode>
</Transaction>
<Transaction TransactionIDX="29067" TransactionType="DB" MessageType="CCC">
<AccountNumber>1002100212101</AccountNumber>
<Amount>58379.40</Amount>
<SerialNumber>444879</SerialNumber>
<Narration>Chq# 444879 ifo </Narration>
<TransactionCode>02</TransactionCode>
<Currency>GHS</Currency>
<BranchSortCode>050621</BranchSortCode>
</Transaction>
<Transaction TransactionIDX="29068" TransactionType="DB" MessageType="CCC">
<AccountNumber>1000101104701</AccountNumber>
<Amount>20000.00</Amount>
<SerialNumber>599662</SerialNumber>
<Narration>Chq# 599662 ifo </Narration>
<TransactionCode>02</TransactionCode>
<Currency>GHS</Currency>
<BranchSortCode>050101</BranchSortCode>
</Transaction>
<Transaction TransactionIDX="29069" TransactionType="DB" MessageType="CCC">
<AccountNumber>1000700262901</AccountNumber>
<Amount>3701.07</Amount>
<SerialNumber>708361</SerialNumber>
<Narration>Chq# 708361 ifo </Narration>
<TransactionCode>02</TransactionCode>
<Currency>GHS</Currency>
<BranchSortCode>050407</BranchSortCode>
</Transaction>
<Transaction TransactionIDX="29070" TransactionType="DB" MessageType="CCC">
<AccountNumber>1000600647501</AccountNumber>
<Amount>500.00</Amount>
<SerialNumber>162320</SerialNumber>
<Narration>Chq# 162320 ifo </Narration>
<TransactionCode>02</TransactionCode>
<Currency>GHS</Currency>
<BranchSortCode>050706</BranchSortCode>
</Transaction>
<Transaction TransactionIDX="29071" TransactionType="DB" MessageType="CCC">
<AccountNumber>1000200560501</AccountNumber>
<Amount>26544.94</Amount>
<SerialNumber>152879</SerialNumber>
<Narration>Chq# 152879 ifo </Narration>
<TransactionCode>02</TransactionCode>
<Currency>GHS</Currency>
<BranchSortCode>050902</BranchSortCode>
</Transaction>
<Transaction TransactionIDX="29072" TransactionType="DB" MessageType="CCC">
<AccountNumber>1000600466101</AccountNumber>
<Amount>1000.00</Amount>
<SerialNumber>133420</SerialNumber>
<Narration>Chq# 133420 ifo </Narration>
<TransactionCode>02</TransactionCode>
<Currency>GHS</Currency>
<BranchSortCode>050706</BranchSortCode>
</Transaction>
<Transaction TransactionIDX="29073" TransactionType="DB" MessageType="CCC">
<AccountNumber>1000600800101</AccountNumber>
<Amount>4991.60</Amount>
<SerialNumber>124728</SerialNumber>
<Narration>Chq# 124728 ifo </Narration>
<TransactionCode>01</TransactionCode>
<Currency>GHS</Currency>
<BranchSortCode>050706</BranchSortCode>
</Transaction>
<Transaction TransactionIDX="29074" TransactionType="DB" MessageType="CCC">
<AccountNumber>1002700057701</AccountNumber>
<Amount>456.20</Amount>
<SerialNumber>252250</SerialNumber>
<Narration>Chq# 252250 ifo </Narration>
<TransactionCode>01</TransactionCode>
<Currency>GHS</Currency>
<BranchSortCode>050327</BranchSortCode>
</Transaction>
<Transaction TransactionIDX="29075" TransactionType="DB" MessageType="CCC">
<AccountNumber>1000600812301</AccountNumber>
<Amount>1200.00</Amount>
<SerialNumber>163001</SerialNumber>
<Narration>Chq# 163001 ifo </Narration>
<TransactionCode>02</TransactionCode>
<Currency>GHS</Currency>
<BranchSortCode>050706</BranchSortCode>
</Transaction>
<Transaction TransactionIDX="29076" TransactionType="DB" MessageType="CCC">
<AccountNumber>1000600473501</AccountNumber>
<Amount>778.57</Amount>
<SerialNumber>155084</SerialNumber>
<Narration>Chq# 155084 ifo </Narration>
<TransactionCode>02</TransactionCode>
<Currency>GHS</Currency>
<BranchSortCode>050706</BranchSortCode>
</Transaction>
<Transaction TransactionIDX="29077" TransactionType="DB" MessageType="CCC">
<AccountNumber>1000101005001</AccountNumber>
<Amount>123.70</Amount>
<SerialNumber>615584</SerialNumber>
<Narration>Chq# 615584 ifo </Narration>
<TransactionCode>02</TransactionCode>
<Currency>GHS</Currency>
<BranchSortCode>050101</BranchSortCode>
</Transaction>
<Transaction TransactionIDX="29078" TransactionType="DB" MessageType="CCC">
<AccountNumber>1002100151801</AccountNumber>
<Amount>220000.00</Amount>
<SerialNumber>446191</SerialNumber>
<Narration>Chq# 446191 ifo </Narration>
<TransactionCode>02</TransactionCode>
<Currency>GHS</Currency>
<BranchSortCode>050621</BranchSortCode>
</Transaction>
</Transactions>

Any help will be very much appreciated.
Thanks.

Board footer

Powered by FluxBB