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

Reply via email to