Spyne is a Python RPC toolkit that makes it easy to expose services that have a well-defined API using multiple protocols and transports. Spyne currently supports a subset of both Xml Schema 1.0 and WSDL 1.1 interface description documents, various Http implementations and ZeroMQ as transports, and SOAP 1.1, HttpRpc, Xml, Json, MessagePack and Yaml standards as protocols. The transports can be used in both a client or server setting.
Questions tagged [spyne]
211 questions
1
vote
0 answers
spyne - Request lxml encoding error
Problem
I'm testing a wsdl application with a remote server, so I can't have any influence on the requesting mechanism.
While testing with it, I get this log messages.
DEBUG:spyne.protocol.soap.soap11:ValueError: Deserializing from unicode strings
…

0x00F
- 50
- 7
1
vote
1 answer
I cannot install Flask-Spyne, during instalation TypeError appear
I am trying to install python module Flask-Spyne on Windows and when I type pip install Flask-Spyne, on Sec-Wall collecting TypeError appear.
I am using Python 3.5.1 on Windows 10
This is it:
C:\Windows\system32>pip install flask-spyne
Collecting…

Michael Sivak
- 27
- 10
1
vote
1 answer
Error when connecting kSoap to Spyne The attribute '{http://schemas.xmlsoap.org/soap/encoding/}root' is not allowed
I have a soap server written in python using spyne. I have also created a soap client in python using suds. It works perfect. Here is the code for the server
class Personnel(ServiceBase):
@rpc(_returns=String)
def personnel(self):
…

Dirk van der Merwe
- 109
- 6
1
vote
1 answer
Python Spyne change the name of _return values
I'm using python 2.7 and Spyne for creating some web services in Django.
I'm not able to change the name of the returned values, for example:
Given this code:
class Consumer(ServiceBase):
@rpc(Integer,Integer, _returns = [Integer,Integer])
def…

teoreda
- 2,392
- 1
- 21
- 28
1
vote
3 answers
spyne - Error when inheriting from a Complex Type and derived class implements a xml attribute
I need to realize existing WSDL.
I try to inherit my complex type class.
But if the derived class implements a xml attribute I get an error.
If the derived class doesn't implement xml attribute I get no error.
Is there anything I do wrong?…

Alexey Burov
- 11
- 6
1
vote
1 answer
Compatibility between PHP SOAP and Python SOAP libraries
The Moodle LMS can be used to quiz students. One optional question type (Opaque) uses SOAP to request questions from a service ( code at https://goo.gl/iGDIiy ).
There is a working "question server" implemented in PHP using the WSDL defined at…

Dirk Grunwald
- 13
- 3
1
vote
2 answers
Spyne model for existing Database structure
I have an issue with defining model in spyne to generate several levels "in" SOAP11.
I used example at first, but my task is to generate service for tables already existing, so I got stuck and try to understand wheter to seek in Spyne properties or…

Krasilnikov Yuri
- 23
- 7
1
vote
2 answers
Spyne - save the generated schema?
I've got a working Spyne/SOAP/WSDL server - how can I save the schema that it is generated? I want to be able to compare the generated schema against an existing schema but it looks from the logs like a schema is generated as a temporary document…

Paul D Smith
- 639
- 5
- 16
1
vote
1 answer
Spyne receiving multiple requests
I'm looking at spyne to be able to make a webservice that handles requests in json. The problem is that I still didn't managed to get it working for more than one request at a time.
I thought this…

Wachrno
- 13
- 3
1
vote
1 answer
How to create a type that contains multiple namespaces
I'm trying to receive and generate messages that can have the following schema:
I then have:
class NS1ComplexModel(ComplexModel):
__namespace__ = 'ns1'
class…

Danielle Madeley
- 2,616
- 1
- 19
- 26
1
vote
2 answers
spyne - use default parameters in services definitions
I'm using Spyne and it works well. I'd like to be able to use default values for my optional parameters. As I understand, each type can be use on its Mandatory form or not: am I right?
Here is my service:
from spyne.model.primitive import Unicode,…

Julien Greard
- 969
- 1
- 12
- 32
1
vote
0 answers
Exceptions in HTTP(WSGI)+JsonDocument Spyne Client
I've programmed a server-side service using Spyne. I want to use the Spyne client code, but I can't do it without having exceptions.
The server side code is something like (I've removed the imports and unified files):
class…

castarco
- 1,368
- 2
- 17
- 33
1
vote
0 answers
cannot import name DjangoServiceBase
I have a problem. spyne example dosn't work.
>>> django.get_version()
'1.6.5'
from spyne.util.django import DjangoComplexModel, DjangoServiceBase
ImportError: cannot import name DjangoServiceBase

electrocoder
- 31
- 6
1
vote
1 answer
About django wrapper example in spyne documentation
I have just tried the django wrapper example in spyne documentation; but I don't understand it very well. I already tried the hello world example, and I could use suds to test the Spyne service, according to documentation, with the following code…

J. C. M. H.
- 159
- 1
- 9
1
vote
2 answers
Where is the correct place to enable CORS?
I'm using Spyne (the example "hello world" code) to make a webservice that produces some json data and then I'm trying to consume this data in javascript code in client's browser.
When I go to the address…

ceremcem
- 3,900
- 4
- 28
- 66