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
Performance issues with SOAP using Spyne
We having performance issues in the SOAP webservice. The webservice is built with Spyne.
I think that the problem can be solved to change the interfaces that the interfaces will only return the necessary data, because we sending large soap objects…

Robert
- 305
- 1
- 2
- 14
0
votes
1 answer
Building a service for a given request
I am relatively new to SOAP frameworks and have been reading through Spynes docs and trying to figure out to build a service that accepts the following request:

Ritmo2k
- 993
- 6
- 17
0
votes
1 answer
Spyne add method dynamically
I am using Spyne to implement a SOAP server to allow client conduct 'RPC'.
I want know if I have already started the server and I want to add some methods, in what way can I achieve this without stopping the server?
I always did this by stopping and…

jxwho
- 385
- 1
- 3
- 10
0
votes
2 answers
Attribute 'type': The QName value '{http://www.w3.org/2001/XMLSchema}EmailString' does not resolve to a(n) type definition., line 4
I want to extend spyne Unicode field with regex to ensure it is a valid E-Mail format. But even when copy-pasting basic example from spyne documentation http://spyne.io/docs/2.10/manual/03_types.html, I get the above error (see title) when visiting…

user3432909
- 3
- 3
0
votes
1 answer
ComplexModel not available on the client
I just started using Spyne and tried to use a ComplexModel as a parameter for one method. I mostly followed the user_manager example from the sources with spyne<2.99 but I always get a type error when doing the client.factory.create() call.
Example…

marc.fargas
- 666
- 1
- 7
- 17
0
votes
2 answers
Spyne+Twisted SOAP Server gives 405 error
I am trying to implement a python SOAP server with Spyne+Twisted.
Here is the sample server code
import logging
logging.basicConfig(level=logging.DEBUG)
from spyne.application import Application
from spyne.decorator import srpc
from spyne.service…

vfsoraki
- 2,186
- 1
- 20
- 45
0
votes
1 answer
Python SOAP Service, A good multithread/multiprocess way
I am using Spyne to implement a SOAP service.
I run this service using built-in wsgi server. Here is the code:
# Logging
import logging
logging.basicConfig(level=logging.DEBUG)
logging.raiseExceptions = 0
# Spyne imports
from spyne.application…

vfsoraki
- 2,186
- 1
- 20
- 45
0
votes
1 answer
XmlAttribute for an unbounded primitive type
I've not found a way to describe an xml attribute for a repeatable primitive type; my best guess so far:
class Contact(ComplexModel):
"contact person and communication channel"
contactName = primitive.Unicode(min_len=1, max_len=70,…

dvd
- 1,014
- 6
- 12
0
votes
1 answer
how to build a REST hierarchy using spyne
I am trying to build a REST web service using spyne. So far I have been able to use ComplexModel to represent my resources. Something very basic, like this (borrowed from the examples):
class Meta(ComplexModel):
version = Unicode
description…

Javier
- 49
- 6
0
votes
1 answer
Timeout while trying to use one service to call another deployed in the same domain
Based on this answer, I was able to create and deploy 2 web services. However, if one service tried to call another, it hanged there until timeout.
My code is:
from wsgiref.simple_server import make_server
from spyne.application import…

Long Thai
- 807
- 3
- 12
- 34
0
votes
1 answer
Spyne, TLS and server-to-client requests
Does Spyne support TLS security and server-to-client requests (communication symmetry) through the usage of the ZMQ underlaying transport?
Spyne's API reference (http://pythonhosted.org/spyne/reference/index.html) and, in case of the ZeroMQ server…

nsx
- 697
- 1
- 13
- 41
0
votes
2 answers
Testing Spyne application
What is the best practice to test Spyne application. Does it have test client like Django or Flask. I dont like idea to start wsgi server to test my application.
Here is my flask+spyne example https://github.com/satyrius/flask-spyne-example

Anton Egorov
- 1,174
- 1
- 11
- 21
0
votes
1 answer
JsonDocument as input protocol but method name taken from URL
From the example at spyne.io:
class HelloWorldService(ServiceBase):
@srpc(Unicode, Integer, _returns=Iterable(Unicode))
def say_hello(name, times):
for i in range(times):
yield 'Hello, %s' % name
application =…

warvariuc
- 57,116
- 41
- 173
- 227
0
votes
1 answer
Python Spyne - setting a different mimetype for SOAP response
I've got my spyne SOAP server running and it works perfectly fine but the only problem I've got is that I need to return a response with specific mimetype.
My returned Content-Type is
text/html; charset=utf-8
I need to return
text/xml;…

Efrin
- 2,323
- 3
- 25
- 45
0
votes
1 answer
spyne generates bad WSDL/XSD schema for ComplexModels with ComplexModel children
I'm trying to use spyne to implement a SOAP service in Python. My client sends SOAP requests like this:
foo
secret
…

Felix Schwarz
- 2,938
- 4
- 28
- 41