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
2
votes
1 answer
How do I add HTTP endpoints to a spyne WsgiApplication
If I have a spyne application that inherits from spyne.Application and am serving that through a spyne.WsgiApplication object, how would I add custom HTTP endpoints to the WSGI server such as / or /info?
The basic structure mirrors the one found on…

blakev
- 4,154
- 2
- 32
- 52
2
votes
1 answer
Modify WSDL in soap webservice with spyne of Python
I am developing with Django and Python , and I need publish 1 service with SOAP with 2 operations. For this task I chose the spyne library:
http://spyne.io/#auxproc=Sync&s=aux
Because apparently is easy to understand and start to develop. I did the…

charles
- 361
- 1
- 5
- 15
2
votes
1 answer
How do I raise a SOAP Fault with a structured detail element in Spyne?
The Spyne manual points out that the right way to create SOAP Faults with Spyne is to raise instances of spyne.model.fault.Fault (or your own subclass):
@add_metaclass(ComplexModelMeta)
class Fault(ComplexModelBase, Exception):
# ...
I'm trying…

Henrik Heimbuerger
- 9,924
- 6
- 56
- 69
2
votes
1 answer
Create multiple services using Spyne
I'm trying to create a SOAP web services using Spyne. Based on the simple Hello example, I want to create 2 different services:
from spyne.application import Application
from spyne.protocol.soap import Soap11
from spyne.server.wsgi import…

Long Thai
- 807
- 3
- 12
- 34
2
votes
1 answer
How do spyne rpc decorated methods consume soap envelope
I'm trying to write a simple soap server. I know how the soap envelope will look like (predefined).
For each request that the server will serve, I know the optional soap headers, the name of the method, and parameters, and also I know what the soap…

polo
- 1,352
- 2
- 16
- 35
2
votes
2 answers
how do I inherit class with decorators in spyne
I'm trying to inherit a decorated class like this
class SOAPCategoy(ComplexModel):
id = Integer
CategoyName = Unicode
class SOAPServiceBase(ServiceBase):
@rpc(Integer, _returns=SOAPSeller)
def Item(self, pId):
....
return…

ivocnii
- 31
- 2
2
votes
1 answer
Python Spyne - SOAP Server - This element is not expected. Expected is ( {http:// } Element_name )
I am getting an error This element is not expected.
Expected is {http://com.blablabla.fbs.webservice.receiver/webservice}Sms_1 ).
I don't understand what is it and it's another day when I am trying to fix it.
Please provide me some tips or…

Efrin
- 2,323
- 3
- 25
- 45
2
votes
1 answer
SOAP requests with multiple namespaces
I am in the process of implementing some pre-defined WSDL which uses multiple namespaces. For simplicity, I have requests that look something like:

nullpuppy
- 21
- 4
2
votes
1 answer
How can I stop Spyne from wrapping arguments in a complexType?
I'm trying to use Spyne to provide web services from Python. I have everything working for a test function called SayHello(name, times). However, I'm wondering why Spyne wraps the name and times arguments in a complexType called SayHello? This makes…

Charlie
- 151
- 1
- 1
- 5
2
votes
1 answer
Hello world example for spyne SOAP server
I am experimenting with several different Python SOAP server libraries, and I don't seem to be able to get the 'hello world' example working for spyne:
https://github.com/arskom/spyne/blob/master/examples/helloworld_soap.py
When I run it, it starts…

aco
- 719
- 2
- 9
- 26
2
votes
2 answers
What is the client for spyne with json document protocol?
I'm trying with the spyne hello world example , the codes basicly are:
class HelloWorldService(ServiceBase):
@srpc(Unicode, Integer, _returns=Array(Unicode))
def say_hello(name, times):
for i in range(times):
yield…

hbrls
- 2,110
- 5
- 32
- 53
1
vote
1 answer
How can I create a basic Soap server with spyne in django
I want to create a server which uses Django and make and take response as SOAP, so I try to use spyne for this reason but I can't run the given code
class HelloWorldService(ServiceBase):
@rpc(Unicode, Integer, _returns=Iterable(Unicode))
def…

acun
- 57
- 4
1
vote
1 answer
Does Spyne (python web service framework) support multiple threads? If not, is there a way to do using the Python Thread Library?
Due to interoperability, I need to deploy an application as a web service. I'm using Spyne (http://spyne.io/) to do that, a python framework for ws. So far so good.
However, the service will receive several requests at once. Hence, I need to…

Marcos Roriz Junior
- 4,076
- 11
- 51
- 76
1
vote
1 answer
Best approach for adding option to bypass ComplexType wrapping of multi-parameter methods
We've recently started to use Spyne and it seems very powerful. In our case, we need to replicate a legacy SOAP API that we're substituting. In order to ensure compatibility with the current clients, we want to get the spyne-generated WSDL to be as…

pHonta
- 125
- 9
1
vote
1 answer
Spyne: Integer Validation how can I set minimum digit limit?
I want to add validation for an Integer, that its minimum digit value is 5 and maximum digit value is 20
For Integer I have set following validations
Integer(min_occurs=1, gt=9999, max_str_len=20, nillable=False)
I just put work around for…

Jahanzaib
- 154
- 1
- 3