示例#1
0
 def header(self, definitions, parent, root):
     """Add the input/output header properties."""
     if root is None:
         return
     header = Facade("Header")
     parent.headers.append(header)
     header.use = root.get("use", default="literal")
     ns = root.get("namespace")
     if ns is None:
         header.namespace = definitions.tns
     else:
         prefix = root.findPrefix(ns, "h0")
         header.namespace = (prefix, ns)
     msg = root.get("message")
     if msg is not None:
         header.message = msg
     part = root.get("part")
     if part is not None:
         header.part = part
示例#2
0
文件: wsdl.py 项目: ovnicraft/suds
 def header(self, definitions, parent, root):
     """Add the input/output header properties."""
     if root is None:
         return
     header = Facade("Header")
     parent.headers.append(header)
     header.use = root.get("use", default="literal")
     ns = root.get("namespace")
     if ns is None:
         header.namespace = definitions.tns
     else:
         prefix = root.findPrefix(ns, "h0")
         header.namespace = (prefix, ns)
     msg = root.get("message")
     if msg is not None:
         header.message = msg
     part = root.get("part")
     if part is not None:
         header.part = part
示例#3
0
 def header(self, definitions, parent, root):
     """ add the input/output header properties """
     if root is None:
         return
     header = Facade('Header')
     parent.headers.append(header)
     header.use = root.get('use', default='literal')
     ns = root.get('namespace')
     if ns is None:
         header.namespace = definitions.tns
     else:
         prefix = root.findPrefix(ns, 'h0')
         header.namespace = (prefix, ns)
     msg = root.get('message')
     if msg is not None:
         header.message = msg
     part = root.get('part')
     if part is not None:
         header.part = part
示例#4
0
文件: wsdl.py 项目: HenryKeiter/suds3
 def header(self, definitions, parent, root):
     """ add the input/output header properties """
     if root is None:
         return
     header = Facade('Header')
     parent.headers.append(header)
     header.use = root.get('use', default='literal')
     ns = root.get('namespace')
     if ns is None:
         header.namespace = definitions.tns
     else:
         prefix = root.findPrefix(ns, 'h0')
         header.namespace = (prefix, ns)
     msg = root.get('message')
     if msg is not None:
         header.message = msg
     part = root.get('part')
     if part is not None:
         header.part = part