Example #1
0
    def getServiceModuleName(self):
        '''return module name.
        '''
        name = GetModuleBaseNameFromWSDL(self.wsdl)
        if not name:
            raise WsdlGeneratorError('could not determine a service name')

        if self.server_module_suffix is None:
            return name
        return '%s%s' % (name, self.server_module_suffix)
Example #2
0
    def getClientModuleName(self):
        """client module name.
        """
        name = GetModuleBaseNameFromWSDL(self._wsdl)
        if not name:
            raise WsdlGeneratorError('could not determine a service name')

        if self.client_module_suffix is None:
            return name

        return '%s%s' % (name, self.client_module_suffix)
Example #3
0
    def getTypesModuleName(self):
        """types module name.
        """
        if self.types_module_name is not None:
            return self.types_module_name

        name = GetModuleBaseNameFromWSDL(self._wsdl)
        if not name:
            raise WsdlGeneratorError('could not determine a service name')

        if self.types_module_suffix is None:
            return name

        return '%s%s' % (name, self.types_module_suffix)