-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Payload interpretation (without SimpleIO) #67
Comments
This is something to do with CLI it seems - note that when you call the service from another one it responds correctly. So this seems something to do with CLI itself not with services. from zato.server.service import Service
class Strip(Service):
def handle(self):
resp = """{"foo": "0", "bar": []}"""
self.response.payload = resp
class AsIs(Service):
def handle(self):
resp = """{"foo": "0", "bar": []}"""
self.response.payload = "?"+resp
class MyService(Service):
def handle(self):
self.logger.info(self.invoke('zzz.strip'))
self.logger.info(self.invoke('zzz.as-is')) |
This has been fixed since 92a43f7 and will be in Zato 1.2 but right now you can have it in Zato 1.1 by installing the latest bundle of hotfixes as explained in a new chapter - https://zato.io/docs/admin/guide/hotfixes.html |
Why not running from master? If you are pushing to master unstable fixes Possibly I do not understand the habits of big ESB boys... On Wed, Jun 5, 2013 at 7:28 PM, Dariusz Suchojad
.................................................................................................................................... |
Heh, I'm not saying you can't use master. But master is for development, everything can happen in there, I don't push unstable things (I use feature branches) but this is not a release. Hotfixes are a means to install fixes for important issues and nothing else. This is open-source so you can honestly use it any way you wish to :-) I'm just saying that there is a stable version and if you need hotfixes only -> you run hotfixman.sh and everything is taken care of but if you prefer to use master, you can most certainly use it. |
When following file is dropped in pickup-dir as
test_resppayl.py
:And declared services are invoked via CLI, one is getting following results:
Note: no SIO declared in services. The
test-resppayl.strip
is expected to return{"foo": "0", "bar": []}
and it returns only the value of first item of interpreted JSON instead? Should the data be returned literally in both cases?The text was updated successfully, but these errors were encountered: