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
ONVIF - GetServices with Capabilities does not return the capabilities of each service
I need help to define correctly the tds:Service class definition to be able to return the Capabilities of each service (Device, Media, Events).
class ServiceT(DeviceComplexModel):
__type_name__ = "Service"
Namespace = AnyUri
XAddr =…

Drx
- 1
0
votes
1 answer
ONVIF Media.WSDL - GetServiceCapabilities fails
I need help with defining the "Capabilities" class so it would pass the Device Tool Test tests.
STEP 5 - Get Media Service capabilities
StepStart: 2022-01-19T07:35:14.1804753Z
Transmit done
Receive done
The element…

Drx
- 1
0
votes
1 answer
remove outertag from spyne wsdl input and output
I am using spyne for creating my webservice.
#urls.py
urlpatterns = [
url(
r'^InventoryService.wsdl', DjangoView.as_view(
name="InventoryService",
services=[InventoryService],
tns='InventoryService',
…

Arun SS
- 1,791
- 8
- 29
- 48
0
votes
1 answer
How to use Spyne+Django with parameters on url?
on django urls.py
url(r'soap//',
DjangoView.as_view(application=provider)),
on views.py
@ rpc(_returns=AnyDict)
def super_test_dict(self, one, two):
user_id = 1 #here need to receive the user_id
res = {"user_id":user_id}
…

Softsofter
- 345
- 1
- 3
- 13
0
votes
1 answer
Spyne+Django ValueError have conflicting name using
I trying to use spyne to generate a SOAP server, but have an error.
Spyne: ValueError: classes and have conflicting name;
the types.py file is:
class PARENT(ComplexModel):
class Section1(ComplexModel):
…

Softsofter
- 345
- 1
- 3
- 13
0
votes
1 answer
Define SOAP client with Spyne that does not have a return message
I'm starting to implement a web service using Spyne. So far the generated WSDL looks good to the consuming client (either the machine client and the human client).
The only thing is they (the human client) have defined a protocol where messages sent…

zontar
- 485
- 7
- 18
0
votes
1 answer
get_xml_as_object function not working with polymorphism - spyne 2.13.12 alpha0
A spyne error is returned when loading polymorphic object in spyne 2.13.12 alpha0. Could you please have a look at the following example and indicate which function should be used to load an object from a xml file ?
import sys
from lxml import…

Loïc CHEVALIER
- 5
- 1
0
votes
0 answers
spyne + twisted host b'localhost'
Following this tutorial I converted the Unicode to String which has worked fine when following the wsgi tutorial.
For some background I am hosting this in a docker container and exposing the port from the container to the host computer. That is why…

Daniel Butler
- 3,239
- 2
- 24
- 37
0
votes
1 answer
get_object_as_xml not working with polymorphism
I would like to export object as xml string with spyne. It works well using function named 'get_object_as_xml' but it does not take polymorphism into account as you can see in the following example.
I have tried to add the…

Loïc CHEVALIER
- 5
- 1
0
votes
1 answer
How to get an array in the object on the client side?
I would like to get an array in the object on the client side, but instead I need to access dictionary like this:
response.BODY["string"]
Preferred solution would be:
response.BODY
For code below:
class ServerResponse(ComplexModel):
BODY =…

c4dmus
- 53
- 1
- 7
0
votes
1 answer
Using Spyne, trying to condense the multiple namespaces generated to a single namespace in a SOAP request
I have the below SOAP request generated by SOAPUI using ComplexModel approach of Spyne request.

Raghu I
- 45
- 7
0
votes
1 answer
How can I secure a Spyne web service with SSL?
I'm trying to get a SOAP web service set up with Spyne. So far, so good. I have a web service,but not I need to secure the data in-flight with SSL. Is there a way to attach a certificate to the Spyne app so my connection is encrypted?
Thank…

KSS
- 821
- 3
- 10
- 26
0
votes
1 answer
Preservice a state in python spyne (like a db connection)
I am using python v3.5 with the package spyne 2.13 running on a gunicorn server v19.9
I wrote a small SOAP Webservice with python spyne (working well). It takes a string and enqueues it to rabbitmq. It must not neccessarily be rabbitmq, but also a…

Sauer
- 1,429
- 4
- 17
- 32
0
votes
1 answer
How to specify request parameters with "ids" in spyne?
I have been tasked to created a SOAP service for one of our partners. The partner provided me a WSDL as specification, that I should implement on our side. I made already quite some progress, yet now I hit a wall.
How can I implement this (the…

chickahoona
- 1,914
- 14
- 23
0
votes
1 answer
Encoding Spyne SOAP XML response with Latin-1
I recently set up a Spyne application for sending an XML response. As it stands now, the application is correctly sending the response -- however, it is currently sending a UTF-8 encoded document. I would like to instead send the document as…

Andrew Bell
- 49
- 1
- 4