コード例 #1
0
ファイル: test_soap12.py プロジェクト: iceteahh/spyne
 def setUp(self):
     self.app = Application([MultipleReturnService],
                            'tns',
                            in_protocol=Soap12(),
                            out_protocol=Soap12())
     self.app.transport = 'none'
     self.wsdl = Wsdl11(self.app.interface)
     self.wsdl.build_interface_document('URL')
コード例 #2
0
ファイル: test_soap12.py プロジェクト: zhuhj89/spyne
    def setUp(self):
        self.app = Application([TestService], 'tns', in_protocol=Soap12(), out_protocol=Soap12())
        self.app.transport = 'null.spyne'
        self.srv = TestService()

        wsdl = Wsdl11(self.app.interface)
        wsdl.build_interface_document('URL')
        self.wsdl_str = wsdl.get_interface_document()
        self.wsdl_doc = etree.fromstring(self.wsdl_str)