Maybe my system is using broken versions of some XML libraries ?
______________________________________________________________ > Od: "Burak Arslan" <[email protected]> > Komu: azurIt <[email protected]> > Dátum: 25.09.2011 22:44 > Predmet: Re: [Soap-Python] SUDS problems > > CC: [email protected] >On 25.09.2011 23:36, azurIt wrote: >> This is very interesting cos i have exactly the same problems with Ladon and >> it's author cannot reproduce it too. What colud cause this ? >> >> How can i clear suds cache ? What version of suds are you using ? Mine is >> 0.4 on python 2.7.1. > >on linux, depending on how you compiled your mktemp, one of: >rm -rf $TMP/suds >rm -rf /tmp/suds > >or on windows: >del /s %TMP%suds > > >> Maybe i have installed some external python modules for XML parsing which >> are preffered by suds and are not working ok ? I have at least PyXML and >> 4Suite installed. > >suds uses own xml engine. > >burak > >> ______________________________________________________________ >>> Od: "Burak Arslan"<[email protected]> >>> Komu:<[email protected]> >>> Dátum: 25.09.2011 22:27 >>> Predmet: Re: [Soap-Python] SUDS problems >>> >>> worksforme. does clearing suds cache help? >>> >>> server: >>> ================================================= >>> >>> >> >from rpclib.model.complex import ComplexModel >> >from rpclib.model.primitive import String >> >from rpclib.service import ServiceBase >> >from rpclib.application import Application >> >from rpclib.decorator import rpc >> >from rpclib.interface.wsdl import Wsdl11 >> >from rpclib.protocol.soap import Soap11 >> >from rpclib.server.wsgi import WsgiApplication >> >from rpclib.util.wsgi_wrapper import run_twisted >>> class state_only(ComplexModel): >>> state = String >>> >>> class testt(ServiceBase): >>> @rpc(String, String, _returns=state_only) >>> def testf(ctx, first, second): >>> result = state_only() >>> result.state = "test" >>> return result >>> >>> if __name__ == '__main__': >>> application = Application([testt], 'tns', >>> interface=Wsdl11(), in_protocol=Soap11(), >>> out_protocol=Soap11()) >>> wsgi_app = WsgiApplication(application) >>> >>> print 'listening on 0.0.0.0:7789' >>> print 'wsdl is at: http://0.0.0.0:7789/app/?wsdl' >>> >>> run_twisted( ( (wsgi_app, "app"),), 7789) >>> >>> ========================================= >>> client >>> ========================================= >>> >> >from suds.client import Client >>> c = Client('http://localhost:7789/app/?wsdl') >>> print c.service.testf('first', 'second') >>> >>> >>> On 25.09.2011 16:04, azurIt wrote: >>>> Hi, >>>> >>>> i have problems with SUDS client and rpclib server with very simple usage >>>> of complex types: >>>> >>>> class state_only(ComplexModel): >>>> state = String >>>> >>>> class testt(ServiceBase): >>>> >>>> @rpc(String, String, _returns=state_only) >>>> def testf(self, first, second): >>>> result = state_only() >>>> result.state = "test" >>>> return result >>>> >>>> SUDS result: >>>> suds.TypeNotFound: Type not found: 's0:state' >>>> >>>> I had similar problems with SUDS + Ladon. Is this bug in SUDS ? What other >>>> client do you recommend to use ? Thanks. >>>> >>>> azurIt >>>> _______________________________________________ >>>> Soap mailing list >>>> [email protected] >>>> http://mail.python.org/mailman/listinfo/soap >>> _______________________________________________ >>> Soap mailing list >>> [email protected] >>> http://mail.python.org/mailman/listinfo/soap >>> >> _______________________________________________ >> Soap mailing list >> [email protected] >> http://mail.python.org/mailman/listinfo/soap > > _______________________________________________ Soap mailing list [email protected] http://mail.python.org/mailman/listinfo/soap
