Hello, Arslan! Your guess was right :) Thank you for the reply and your advice. It works :) You've helped me a lot.
25 февраля 2012 г. 16:48 пользователь Burak Arslan <[email protected]> написал: > Hi Федор. I guess :) > > Turns out XmlAttribute wasn't working properly at all. This commit fixes all > issues i could find: > https://github.com/plq/rpclib/commit/657ea2d0ab2937017e3741a239e0426957a44ac1 > > Let me know how it goes. > > Best, > Burak > > > On 02/25/12 08:24, Федор Степанов wrote: >> >> Hello, >> how can I use class XmlAttribute properly? >> For example, in "helloworld_soap.py" example how receive data in >> attributes instead of elements? >> >> class HelloWorldService(ServiceBase): >> @srpc(String, Integer, _returns=Iterable(String)) >> def say_hello(name, times): >> ''' >> Docstrings for service methods appear as documentation in the wsdl >> <b>what fun</b> >> @param name the name to say hello to >> @param the number of times to say hello >> @return the completed array >> ''' >> for i in range(times): >> yield 'Hello, %s' % name >> >> @srpc(XmlAttribute(String), XmlAttribute(Integer), >> _returns=Iterable(String)) >> instead of >> @srpc(String, Integer, _returns=Iterable(String)) >> >> I'm sorry for my english. >> _______________________________________________ >> Soap mailing list >> [email protected] >> http://mail.python.org/mailman/listinfo/soap > > _______________________________________________ Soap mailing list [email protected] http://mail.python.org/mailman/listinfo/soap
