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
0 answers
Do you know, if there is a wsgi dataflow documentation for spyne?
I am looking for documentation on spyne WSGI support i.e. which objects were created in which order?
Also, I used events.py example from the repository to test the events but wsgi_call does not fire. Is there a particular case for it to fire?
PS:…

John Gedik
- 1
- 1
0
votes
0 answers
How to: Spyne authentication?
I don't understand how to setup the user and password for authentication of my soap server.
I found this example:
import logging
import random
import sys
# bcrypt seems to be among the latest consensus around cryptograpic circles on
# storing…

dmbndvsk
- 1
- 2
0
votes
0 answers
Spyne soap service returning json output not xml
This is my service in spyne for integrating client server. It works well when i tested it in Postman, SoapUI and Boomerang(extension for soap request/response). It sends and gets xml format. But client said that he got Json response instead of xml.…
0
votes
1 answer
I could not return soap response
I need to write a soap service which gets soap request and return soap response. I could handle sending soap request with zeep client library, everythin correct. But i couldnt send any soap response it shows the same error:)
import logging
from…
user15883648
0
votes
1 answer
Unable to use ByteArray value received
I'm developing a soap web server with spyne.
I've defined the following method inside a Service class:
@rpc(String, String, String, String, String, DateTime, String, String,
String, Integer32, ByteArray, _returns=ResponseCode)
def…
0
votes
1 answer
problem running spyne with uwsgi , unable to find "application" callable
Good morning everyone, I have problems with soap/spyne with uwsgi server
This is a semplification of my code :
server.py
soap_namespace = 'somenamespace'
class XmlReturn(ComplexModel):
status = Boolean
message = String
exception =…

Alex
- 77
- 8
0
votes
1 answer
Spyne - GET with multiple paths instead of parameters for the query
I'm trying to create a service to stream some files to clients from the server. However, instead of a URL like this:
$ curl http://localhost:8000/get_file?path=file_name
the client requests the file like this:
$ curl…

Amir Shabani
- 3,857
- 6
- 30
- 67
0
votes
1 answer
Spyne - Multiple services with multiple target namespaces, returns 404 with WsgiMounter
I have two services that are part of one application, Hello and Auth, and each has its own target namespace, as such:
from spyne import (
Application, ServiceBase, rpc,
Unicode,
)
from spyne.protocol.soap import Soap11
from spyne.server.wsgi…

Amir Shabani
- 3,857
- 6
- 30
- 67
0
votes
2 answers
xsi:type attribute does not resolve to a type definition
Do you guys have any idea how to fix it? I've tried to pass the type_name as Lead, but It didn't work either.
…

adrlfran
- 23
- 3
0
votes
1 answer
Spyne - Using nested classes for an Array of ComplexModel
With regards to Spyne Models and Native Python Types, let's assume I have two models, Company and Employee:
# server.py
from spyne import (
Iterable, ComplexModel, Unicode, Integer,
)
class Employee(ComplexModel):
name = Unicode
salary…

Amir Shabani
- 3,857
- 6
- 30
- 67
0
votes
1 answer
How to validate multiref with spyne?
I need to validate a multiRef document using spyne
This is the request send to spyne SOAP server

Max Stainer
- 41
- 4
0
votes
1 answer
add xsi:type in SOAP python spyne xml response
I am using example/complextype.py script provided in spyne official repo and I got the following
reponse:
--------------- RESPONSE ------------------------

Max Stainer
- 41
- 4
0
votes
1 answer
Spyne, Django change WSDL url
I am using django behind nginx reverse proxy and django sees the server url different than what it actually is hosted on like:
Django: http://webserver.com
Nginx: https://webserver.com
When I try to add the WSDL to SoapUI it automatically defaults…

Guven Degirmenci
- 684
- 7
- 16
0
votes
1 answer
Exposing simple types on WSDL with Spyne
We are trying to build a SOAP app with Django + Spyne building specific required endpoints. The exposed WSDL has to precisely match a predetermined XML file, including the custom simpleType definitions. We're currently failing to show the simple…

jancss
- 1
0
votes
1 answer
How to post xml data to soap service and process properly via spyne Python?
I want to get xml body:
value1
value2
value3
value4
in param input_data in xml form.
My code is:
from spyne import Application, rpc,…

Kate A
- 11
- 2