On 15/11/14 17:27, Daniel Grindelid wrote:
This I will sure do. I do not have the systems on hand but will get these details documented.
For the current case it is a system exposing SOAP services used for storing and retrieving personal
records within the health care sector where they’d like to use the ESB platform
to audit all calls made. I will figure out the details as requested before going further.
Cool, please do.
Trivial things like proxying 1:1 are trivial indeed. Here we have a
proxy which translates messages from ZeroMQ to JMS WebSphere MQ and AMQP
in 2 lines of code:
Or below, let’s assume we have such a 1:1 HTTP proxy. This is the actual
from zato.server.service import Service
backend = self.outgoing.plain_http[‘Backend’]
Now you can expose the same service over XML, JSON or anything and, for
instance, require security any means using the GUI as here:
So as you can see - such use cases can be done in 2 or 3 lines of code.
However, when you reach the point of complex business requirements with
custom headers, lots of transformations, lookups, dictionaries, missing,
incomplete or invalid responses, including XML-like payload produced by
parsers from proprietary vendors or such, you will definitely want to do
it in Python and Zato rather than in XML or a graphical language (even
if Zato may grow the latter with time for coordinating higher-level
As for the audit trail - this is trivial as well.
Let’s assume you have an HTTP proxy as the one above - now you need to
What you do is mounting the proxy on a channel, enable the audit log and
after accessing, say with curl:
$ curl localhost:11223/service -d “My Payload”
… you have screens as here:
Note that you can specify a list of patterns, JSON Pointers or XPath,
that will be masked out when storing audit data so as not to log user
Obviously, as with pretty much anything in Zato, the audit log is
available in the platform’s API so you can plug it in to any monitoring
But these are just ideas off the top of my head - please prepare
requirements, sample data and I’ll be happy to assist.