Пример #1
0
    def generate_soap_service(self):
        namespace = ('u', self.service_type)
        ctrl_url = ''

        if self.url_base in self.control_url:
            ctrl_url = self.control_url
        else:
            ctrl_url = '%s%s' % (self.url_base,
                                 format_rel_url(self.control_url))

        self._soap_service = SOAPProxy(ctrl_url, namespace)
Пример #2
0
    def generate_soap_service(self):
        namespace = ('u', self.service_type)
        ctrl_url = ''

        if self.url_base in self.control_url:
            ctrl_url = self.control_url
        else:
            ctrl_url = '%s%s' % (self.url_base, format_rel_url(
                self.control_url))

        self._soap_service = SOAPProxy(ctrl_url, namespace, self.call_headers)
Пример #3
0
    def generate_soap_service(self, soap_type="url"):
        namespace = ("u", self.service_type)
        ctrl_url = ""

        #        if self.url_base in self.control_url:
        if is_relative(self.control_url, self.url_base):
            ctrl_url = "%s%s" % (self.url_base, format_rel_url(self.control_url))
        else:
            ctrl_url = self.control_url

        if soap_type == "file":
            self._soap_service = SOAPProxyFile(ctrl_url, namespace)
        else:
            self._soap_service = SOAPProxy(ctrl_url, namespace)
Пример #4
0
    def generate_soap_service(self, soap_type='url'):
        namespace = ('u', self.service_type)
        ctrl_url = ''

        #        if self.url_base in self.control_url:
        if is_relative(self.control_url, self.url_base):
            ctrl_url = '%s%s' % (self.url_base, format_rel_url(
                self.control_url))
        else:
            ctrl_url = self.control_url

        if soap_type == 'file':
            self._soap_service = SOAPProxyFile(ctrl_url, namespace)
        else:
            self._soap_service = SOAPProxy(ctrl_url, namespace)
Пример #5
0
    def generate_soap_service(self, soap_type='url'):
        namespace = ('u', self.service_type)
        ctrl_url = ''

#        if self.url_base in self.control_url:
        if is_relative(self.control_url, self.url_base):
            ctrl_url = '%s%s' % (self.url_base,
                                 format_rel_url(self.control_url))
        else:
            ctrl_url = self.control_url

        if soap_type == 'file':
            self._soap_service = SOAPProxyFile(ctrl_url, namespace)
        else:
            self._soap_service = SOAPProxy(ctrl_url, namespace)