sending messages
These short guides explain how to exchange messages using Centrifax. Click next to continue.
The instruction below will send an empty test message with the message identifier of "test101". The receiver and sender are setup within their respective configuration files.
open plumbingco push testmsg from tradesuppliers code test101 send
The message below will be received by plumbingco (the receiver) from tradesuppliers (the sender), with the message identifier of "test101".
info testmsg recv plumbingco from tradesuppliers code test101 stop
The instruction below will send an invoice message with the message identifier of inv00001.
open plumbingco push invoice from tradesuppliers code inv00001 body with amount as 10.00 line tax with rate as 20 ends ends send
The message below will be received by plumbingco (the receiver) from tradesuppliers (the sender), with the message identifier of "inv00001".
info invoice recv plumbingco from tradesuppliers code inv00001 body with amount as 10.00 line tax with rate as 20 ends ends stop