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
1 answer
Spyne- How to get element from SOAP
I'm using SPYNE for the very first time. I want write a server for TR069 service.
I receive message like below:

user3686010
- 13
- 2
1
vote
1 answer
Setting XML element text nodes in Spyne
I use Spyne framework to provide SOAP web service. I need to return something very similar to
value2
value3
…

mdaif
- 21
- 2
1
vote
1 answer
How to describe element attributes with Spyne
I'm ok with Spyne's hello world examples, but when it comes to something more complex I faced with lack of documentation and advanced examples. In my case I have a service method which accepts body like this

Anton Egorov
- 1,174
- 1
- 11
- 21
1
vote
2 answers
Spyne with Flask application context
I have Flask application and need to add SOAP server functionality to integrate with some services. The Spyne library was choosen for SOAP. I found how to combine Flask and Spyne wsgi apps together using werkzeug.wsgi.DispatcherMiddleware. But now I…

Anton Egorov
- 1,174
- 1
- 11
- 21
1
vote
1 answer
Python Spyne - WSDL server - No matching global declaration available for the validation root
I am trying to create a soap server with python spyne library. I don't really understand how to configure the server to receive data that is being sent because I get errors.
Please provide me some help, tips and feedback on resolving this…

Efrin
- 2,323
- 3
- 25
- 45
1
vote
0 answers
Map Python dict to a WSDL complex type
I have a SOAP service method that wants to receive an argument of dict type.
Currently i am working around this using:
class KeyValue(ComplexModel):
key = Mandatory.Unicode
value = Mandatory.Unicode
And:
class ASoapService(ServiceBase):
…

warvariuc
- 57,116
- 41
- 173
- 227
1
vote
1 answer
Spyne. Set Array fixed number items
I create the model in spyne with array attribute and I need to fix number items in array.
i.e. my model looks like:
class MyModel(ComplexModel):
__namespace__ = 'myns'
string_field = String(**{'min_occurs': 1, 'max_occurs': 1, 'nillable':…

Alexey
- 812
- 13
- 22
1
vote
0 answers
python spyne: get rid of ComplexTypes in method definitions
I've built a simple service with spyne and there is one issue - it will wrap method input parameters into complex types - :
class JiraAdapter(ServiceBase):
@srpc(Unicode, Unicode, Unicode, _returns=String)
def…

abolotnov
- 4,282
- 9
- 56
- 88
1
vote
2 answers
Possible message size limitation when using SUDS to consume an RPClib service?
I have been using SUDS and RPCLib to develop a SOAP interface to a software solution that takes a PDF document and returns a PNG, and have found a very interesting problem.
I have written the testing client (using SUDS) and server (using RPCLib),…

Namingwaysway
- 270
- 1
- 17
0
votes
1 answer
SOAP Spyne Requested Resource not found WSDL
thats why I try to begin with Hello World application.. not really successfully. I created a server with SPYNE in python. I always get bad response "Requested Resource say_helloResponse not found. If I delete the request "say_helloResponse", it wont…

Axel
- 1
0
votes
0 answers
Spyne - How to return xsd:choice types from function
I am using spyne to try and replicate the following WSDL:
Response to a get request of the…

Pete Calvert
- 1
- 1
0
votes
1 answer
python / spyne SOAP service - how to properly return an empty list?
related to:
Flask 2.2.2
spyne 2.14.0
zeep 4.2.0
I am building a SOAP service using spyne. This service simulates the SOAP API of a production server and thus, must return…

Herr R aus B
- 1
- 2
0
votes
2 answers
Spyne/Python/Soap. Add xsi:type to AnyDict
Im using Spyne & I try to add xsi:type="xsd:string" to my AnyDict result in response .
Now i have this one:
…

Vova
- 3
- 3
0
votes
1 answer
Accepting 2 complex type arguments in Spyne vs Core WCF
I need to create a SOAP service which needs to be consumed by a third-party application to accomplish a task (callback). The below is the C# interface they've specified in their documentation and I think they've already developed the consumer so it…

Isham Mohamed
- 2,629
- 1
- 14
- 27
0
votes
2 answers
spyne How to get a list of soap action names?
I have two soap applications implementing different, soap actions which I want to route accordingly. How can I get the listing of the soap actions available in my spyne service? Is it available through spyne.interface.xml_schema or Application?
I do…

John Gedik
- 1
- 1