code: def get_definition(self, name):
          '''Returns xaddr and wsdl of specified service'''
          # Check if the service is supported
          if name not in SERVICES:
              raise ONVIFError('Unknown service %s' % name)
          wsdl_file = SERVICES[name]['wsdl']
          ns = SERVICES[name]['ns']
  
          wsdlpath = os.path.join(self.wsdl_dir, wsdl_file)
          if not os.path.isfile(wsdlpath):
              raise ONVIFError('No such file: %s' % wsdlpath)
  
          # XAddr for devicemgmt is fixed:
          if name == 'devicemgmt':
              xaddr = 'http://%s:%s/onvif/device_service' % (self.host, self.port)
              return xaddr, wsdlpath
  
          # Get other XAddr
          xaddr = self.xaddrs.get(ns)
          if not xaddr:
              raise ONVIFError('Device doesn`t support service: %s' % name)
  
          return xaddr, wsdlpatf get_definition(self, name):
          '''Returns xaddr and wsdl of specified service'''
          # Check if the service is supported
          if name not in SERVICES:
              raise ONVIFError('Unknown service %s' % name)
          wsdl_file = SERVICES[name]['wsdl']
          ns = SERVICES[name]['ns']
  
          wsdlpath = os.path.join(self.wsdl_dir, wsdl_file)
          if not os.path.isfile(wsdlpath):
              raise ONVIFError('No such file: %s' % wsdlpath)
  
          # XAddr for devicemgmt is fixed:
          if name == 'devicemgmt':
              xaddr = 'http://%s:%s/onvif/device_service' % (self.host, self.port)
              return xaddr, wsdlpath
  
          # Get other XAddr
          xaddr = self.xaddrs.get(ns)
          if not xaddr:
              raise ONVIFError('Device doesn`t support service: %s' % name)
  
          return xaddr, wsdlpath
docs: Returns xaddr and wsdl of specified service