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
0
votes
1 answer
Custom tags with spyne
Im trying to set up a small SOAP 1.1 server with twisted and spyne, but I can't seem to find anything on how to create custom tags(body), namespaces, or headers for my responses. Is there a better way to do this than creating my own…

Adam Long
- 5
- 2
0
votes
1 answer
Handling multiple clients with twisted and spyne
I'm trying to create a simple python server that can handle multiple RCP calls at the same time. I would like to use twisted for the networking and spyne to handle the RPCs. I found a good example in the spyne github repo here, but when I make a…

Adam Long
- 5
- 2
0
votes
1 answer
Python Spyne custom output parameters
I need an output like this in Spyne:
…

Farshid Ashouri
- 16,143
- 7
- 52
- 66
0
votes
1 answer
How can I return an XML file with Spyne?
I have Flask-Spyne server (web service) and I want to return (return to client after he will ask) a XML file.
I want to do this:
I will put some things from database to XML. (solved)
I have that XML saved on server (webservice) and I want to send…

Michael Sivak
- 27
- 10
0
votes
1 answer
How to properly get spyne polymorphic tagnames
Is there a way to get the specific class tag names from my spyne class definitions?
Given the case, my class hierarchy looks like this:
# models.py
class Vehicle(ComplexModel):
...
class Car(Vehicle):
...
class Bike(Vehicle):
...
Then…

0x00F
- 50
- 7
0
votes
0 answers
Returning complex data result from WCF webservice hosted in python spyne
I have a problem in returning complex type from method over WCF webservice hosted in python spyne framework. Currently at C# side im having this sample of code:
var myBinding = new BasicHttpBinding();
var myEndpoint = new…

Marduk
- 359
- 4
- 13
0
votes
1 answer
Spyne create answer
Sorry for my English.
I can not understand how SPYNE generates response to a request to send him.
Client sends in this form:
user6435497
0
votes
1 answer
Spyne in_protocol Soap11 and http headers
I can't handle http and https headers in Spyne.
I have NginX + Twisted + Spyne, It works well, but I need to get userId for filter functionality in Spyne. May be I should dig somewhere else?
The code is:
Client:
url_service =…

Krasilnikov Yuri
- 23
- 7
0
votes
1 answer
Client can't validate an answer from spyne SOAP server due to whitespaces
I have Django model
class OrderItem(models.Model):
comment = models.CharField('comment', max_length=255, blank=True)
.....
and other fields which are not important.
And I have spyne models described like this
class…

Igor Kremin
- 355
- 4
- 8
0
votes
1 answer
Get Django Request from SRCP method Spyne?
I have a SRCP and accurate method that only authenticate the user before performing the task. I was able to login using Basic Authentication in Django, but could not recover the request of the data, the user for example, within the SRCP method.

Murilo Venturoso
- 359
- 5
- 16
0
votes
1 answer
spyne many-to-many version of server_sqlalchemy
I modified the server_sqlalchemy example to enable multi table as follows permissions = Array(Permission).store_as(table(multi=True)) and added methods get_permission, put_permission and get_all_permission similar to get_user, put_user and…

user1663311
- 3
- 1
0
votes
1 answer
How to use Soap11 document/literal (body bare) with Spyne (SOAPAction no considered)
I'm using spyne 2.11 with Django 1.4 and I'm trying to emulate an Apache Axis 1.4 Web Service.
My WS client is suds, and I'm receiving WS requests with bare body, i.e., argument is not wrapped in a in-message and the "SOAPAction" http header.…

erny
- 1,296
- 1
- 13
- 28
0
votes
0 answers
Spyne: How to handle iterables
I have a django application that accepts JSON requests, processes the requests, forwards them as SOAP to an API, processes the response, and then forwards the response as JSON to the client.
Methods that don't have Iterable in the response are…

Dynameyes
- 435
- 5
- 15
0
votes
1 answer
Spyne: Why am I getting empty responses for json requests?
I have a working application that accepts SOAP requests, processes the requests, forwards the SOAP request to an API, processes the response, and then forwards the response to the client.
I'm trying to change this application so that it will be JSON…

gerald
- 57
- 7
0
votes
1 answer
how to implement abstract model in spyne
I need to implement an abstract model using Spyne.
In fact, let's say - as a simple example - that I want to manage a garage business.
I then have the following classes:
class Vehicle(ComplexModel):
''' this class is abstract '''
…

Julien Greard
- 969
- 1
- 12
- 32