Programming examples

Subsequent chapters present how a typical code to perform a given operation, such as manipulating JSON or XML, will look like. It is assumed the reader has already completed the tutorial, is familiar with Zato’s architecture and read about channels and outgoing connections - concepts explained in these chapters are not repeated here.

Note

Depending on how you write code, in what data format, it’s possible to write it once only and expose it through multiple channels simultaneously without any code changes, without programming and without server restarts either.

If you use SimpleIO (SIO), the same code can be made available through many independent channels using JSON or XML simultaneously.

Also, unless you’re implementing a custom security scheme, services can assume that the fact they’re invoked means that previous authentication/authorization layers granted a client application access. You don’t need to code security.

Topic Examples
HTTP (REST)
SimpleIO (SIO)
JSON
XML
SOAP
CSV
Other data formats
AMQP
FTP
JMS WebSphere MQ
Redis
Scheduler
SQL
ZeroMQ
SMTP
IMAP
Amazon S3
OpenStack Swift
ElasticSearch
Solr
Odoo (OpenERP)
JSON Pointers
XPath