How to overwrite the auto-generated Zato service name

I use the following code. I expect my service to be named multiply.numbers, but that is not the case. Can anyone help me know how to do this corrrectly.


import logging

# Zato
from zato.server.service import Service
service_name = 'multiply.numbers'

class AddNumbers(Service):

    # Overwrite Zato Default Service Name
    def get_name():
        return service_name


you need to assign it to the name attribute, as below:

class MyService(Service):
    name = 'my.service'

Problem resolved, thanks :slight_smile: