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
7
votes
1 answer
Spyne Soap server with WSDL-file
I'm trying to port a Soap server from an old PHP project to Python. Django to be exact.
In PHP you use
$server = new SOAPServer("xyz.wsdl", ....
As far as I know this
app = Application([HelloWorldService], 'spyne.examples.hello.http',
…

sbo
- 71
- 3
7
votes
2 answers
Qualified element/attribute forms and unqualified forms with Spyne soap server
Is there any way to use elementFormDefault="unqualified" server schema type with Spyne server?
Now my all trials end up with method response result:

user2358335
- 71
- 2
6
votes
3 answers
Remove the namespace from Spyne response variables
Implementing a WebService according to a specific WSDL. Client cannot be changed. Correctly processing request from Client, but Client is complaining on Response because of namespace in variables.
What I want (soapUI response based on…

c4talyst
- 243
- 2
- 10
6
votes
1 answer
There is an example of Spyne client?
I'm trying to use spyne (http://spyne.io) in my server with ZeroMQ and MsgPack. I've followed the examples to program the server side, but i can't find any example that helps me to know how to program the client side.
I've found the class…

castarco
- 1,368
- 2
- 17
- 33
4
votes
1 answer
How to set name and binding of a port in Spyne?
I have written a Spyne web service via Django. I'm simulating some application, so I need to implement exact interfaces. I have following port definition in the original application:
< wsdl:service name = "SendSmsWebServiceImplService" >
<…

Zeinab Abbasimazar
- 9,835
- 23
- 82
- 131
4
votes
1 answer
Deploy multiple web services, i.e. multiple wsdl files, in python
I'm creating web services in python using Spyne based on this example. However, all my services are combined into one wsdl file locating at http://localhost:8000/?wsdl. I'm looking for another way to deploy each web service separately in a single…

Long Thai
- 807
- 3
- 12
- 34
4
votes
1 answer
Changing Spyne constants
spyne.const has the following
REQUEST_SUFFIX = ''
"""The suffix for function response objects."""
RESPONSE_SUFFIX = 'Response'
"""The suffix for function response objects."""
How could I configure my own suffixes? I want all my methods' request…

Anton Egorov
- 1,174
- 1
- 11
- 21
3
votes
1 answer
In Python got many issues with Spyne
Well, here's my Python code:
#!/usr/bin/env python
from spyne import Application, rpc, ServiceBase, Unicode
from lxml import etree
from spyne.protocol.soap import Soap11
from spyne.server.wsgi import WsgiApplication
# Wsgi это Web server Getewap…

David
- 143
- 5
3
votes
2 answers
Requested resource '{spyne.examples.django}' not found
I am trying to develop a soap service in Django using Spyne. I've cloned spyne for app 'Hello_world' in Django application, but I get an error. Could anyone help me with it please?
My codes is similar to the one below:
app =…

fatemeh nikoonezhad
- 33
- 3
3
votes
1 answer
Understanding RPC decorators: complex return arguments with SOAP and XML
I am brand new to creating SOAP web services and have a question about RPC decorators.
Anyway, my intention is for my web service to have a somewhat complex type of return (I believe it is its Polymorphic). The input protocol is SOAP and the output…

Andrew Bell
- 49
- 1
- 4
3
votes
0 answers
Python Spyne XML GET (not POST)
I am creating a simple Web Service using Spyne, the client (which I don't control) send a GET to verify that SSL is up and working.
The Spyne service I created responds with an error, saying only POSTS are supported.
Any ideas on how I can make it…

bcb
- 41
- 2
3
votes
1 answer
Multiple namespaces in spyne SOAP web service
I'm trying to host SOAP service in python3 using Spyne framework and this example part of code:
class HelloWorldService(ServiceBase):
@srpc(Unicode, Integer, _returns=Iterable(Unicode))
def say_hello(name, times):
for i in…

Marduk
- 359
- 4
- 13
3
votes
1 answer
xml with multiple data processing in django spyne
i have a server running django and spyne,
i want to configure spyne to accept xml like below:

naser aliabadi
- 31
- 3
3
votes
0 answers
Spyne - how do you set the min_occurs or max_occurs attributes for an xml_choice_group?
I'm trying to implement a 3rd party service (+1 vote for auto-generating a service from a WSDL!) and I'm trying to declare a type with a mandatory anonymous choice. From the external XSD I have:
…

Pacanukeha
- 31
- 4
3
votes
1 answer
How to use the 'self' param inside Spyne server methods
I've seen in many Spyne examples that all the methods don't have the typical self parameter; there aren't examples of Spyne using the self parameter, nor cls. They use a ctx parameter, but ctx doesn't refer to the instance nor to the class (and I…

castarco
- 1,368
- 2
- 17
- 33