[spyne] Namespaces problem Spyne

Burak Arslan burak.arslan at arskom.com.tr
Wed Jul 20 12:16:18 UTC 2016

On 07/20/16 14:04, Mouadh Kaabachi wrote:
> |the result that i got with spyne every time doesn't contains the xsd: :|

that's because you are not returning any xsd.

Here's what you need to do:

class DiscoverRequest(ComplexModel):
    RequestType = Unicode
    Restrictions = Restrictionlist
    Properties = Propertielist

class HelloWorldService(ServiceBase):
    @rpc(DiscoverRequest, _returns=AnyXml, _body_style="bare")
    def Discover(ctx, request):
        return etree.fromstring("""<root>whatever</root>""")

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spyne.io/archives/people/attachments/20160720/a791ba7d/attachment.html>

More information about the people mailing list