Server: http://pastebin.com/Njhbf4SM
Client: http://pastebin.com/6NCMHFpN run server with spyne 2.9.3 and lxml 3.1.0 ______________________________________________________________ > Od: "Burak Arslan" <[email protected]> > Komu: azurIt <[email protected]> > Dátum: 26.02.2013 11:10 > Predmet: Re: [Soap-Python] Problem with spyne 2.9.3 and lxml 3.1.0 > > CC: [email protected] >Hi Azur, > >At first glance, this doesn't make sense. > >Here's where it fails: >https://github.com/arskom/spyne/blob/spyne-2.9.3/spyne/protocol/xml/model.py#L79 > >validate_native() calls are for enforcing constraints. It's very simple, >see here: > >https://github.com/arskom/spyne/blob/spyne-2.9.3/spyne/model/primitive.py#L356 > >Are you sure the value 6000.0 is not outside the defined range? > >You said you used Integer or Float as parameters. What are the vaues for >Integer.Attributes.{gt,ge,lt,le} ? > >Best, >Burak > >On 02/26/13 11:44, azurIt wrote: >> Sorry, here it is: >> >> >> Traceback (most recent call last): >> File >> "/usr/local/lib/python2.6/dist-packages/spyne-2.9.3-py2.6.egg/spyne/server/_base.py", >> line 82, in get_in_object >> message=self.app.in_protocol.REQUEST) >> File >> "/usr/local/lib/python2.6/dist-packages/spyne-2.9.3-py2.6.egg/spyne/protocol/soap/soap11.py", >> line 252, in deserialize >> ctx.in_object = self.from_element(body_class, ctx.in_body_doc) >> File >> "/usr/local/lib/python2.6/dist-packages/spyne-2.9.3-py2.6.egg/spyne/protocol/xml/_base.py", >> line 161, in from_element >> return handler(self, cls, element) >> File >> "/usr/local/lib/python2.6/dist-packages/spyne-2.9.3-py2.6.egg/spyne/protocol/xml/model.py", >> line 64, in wrapper >> return func(prot, cls, element) >> File >> "/usr/local/lib/python2.6/dist-packages/spyne-2.9.3-py2.6.egg/spyne/protocol/xml/model.py", >> line 234, in complex_from_element >> value = prot.from_element(member, c) >> File >> "/usr/local/lib/python2.6/dist-packages/spyne-2.9.3-py2.6.egg/spyne/protocol/xml/_base.py", >> line 161, in from_element >> return handler(self, cls, element) >> File >> "/usr/local/lib/python2.6/dist-packages/spyne-2.9.3-py2.6.egg/spyne/protocol/xml/model.py", >> line 64, in wrapper >> return func(prot, cls, element) >> File >> "/usr/local/lib/python2.6/dist-packages/spyne-2.9.3-py2.6.egg/spyne/protocol/xml/model.py", >> line 79, in base_from_element >> raise ValidationError(element.text) >> ValidationError: Fault(Client.ValidationError: 'The value "\'6000.0\'" could >> not be validated.') >> >> >> >> >> >> ______________________________________________________________ >>> Od: "Burak Arslan" <[email protected]> >>> Komu: azurIt <[email protected]> >>> Dátum: 26.02.2013 09:56 >>> Predmet: Re: [Soap-Python] Problem with spyne 2.9.3 and lxml 3.1.0 >>> >>> CC: [email protected] >>> Hi Azur, >>> >>> That's the suds traceback. What does the traceback from the spyne side say? >>> >>> Best, >>> Burak >>> >>> >>> >>> On 02/25/13 16:00, azurIt wrote: >>>> Hi, >>>> >>>> i'm having problems with spyne 2.9.3 and lxml 3.1.0. When i try to use >>>> Integer or Float as an parameter to function, this error is printed: >>>> >>>> Traceback (most recent call last): >>>> File "client.py", line 4, in <module> >>>> result = client.service.test(6000.0) >>>> File >>>> "/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/client.py", >>>> line 542, in __call__ >>>> return client.invoke(args, kwargs) >>>> File >>>> "/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/client.py", >>>> line 602, in invoke >>>> result = self.send(soapenv) >>>> File >>>> "/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/client.py", >>>> line 649, in send >>>> result = self.failed(binding, e) >>>> File >>>> "/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/client.py", >>>> line 702, in failed >>>> r, p = binding.get_fault(reply) >>>> File >>>> "/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/bindings/binding.py", >>>> line 265, in get_fault >>>> raise WebFault(p, faultroot) >>>> suds.WebFault: Server raised fault: 'The value "'6000.0'" could not be >>>> validated.' >>>> >>>> Everything works with these configurations: >>>> rpclib 2.7.0 + lxml 3.1.0 >>>> spyne 2.9.3 + lxml 2.3.2 >>>> rpclib 2.7.0 + lxml 2.3.3 >>>> >>>> >>>> Any ideas? Thnx. >>>> >>>> azur >>>> _______________________________________________ >>>> Soap mailing list >>>> [email protected] >>>> http://mail.python.org/mailman/listinfo/soap >>> > > _______________________________________________ Soap mailing list [email protected] http://mail.python.org/mailman/listinfo/soap
