コード例 #1
0
ファイル: rpc.py プロジェクト: tefra/txsuds
 def envelope(self, header, body):
     env = Binding.envelope(self, header, body)
     env.addPrefix(encns[0], encns[1])
     env_ns = self.wsdl.options.envns
     env.set('%s:encodingStyle' % env_ns[0],
             'http://schemas.xmlsoap.org/soap/encoding/')
     return env
コード例 #2
0
ファイル: rpc.py プロジェクト: abierbaum/twisted-suds
 def envelope(self, header, body):
     env = Binding.envelope(self, header, body)
     env.addPrefix(encns[0], encns[1])
     env_ns = self.wsdl.options.envns
     env.set('%s:encodingStyle' % env_ns[0],
             'http://schemas.xmlsoap.org/soap/encoding/')
     return env
コード例 #3
0
 def envelope(self, header, body):
     """
     Build the B{<Envelope/>} for an soap outbound message.
     @param header: The soap message B{header}.
     @type header: L{Element}
     @param body: The soap message B{body}.
     @type body: L{Element}
     @return: The soap envelope containing the body and header.
     @rtype: L{Element}
     """
     env = Binding.envelope(self, header, body)
     env.addPrefix(encns[0], encns[1])
     env.set('%s:encodingStyle' % envns[0], 
             'http://schemas.xmlsoap.org/soap/encoding/')
     return env