Questions tagged [spyne]

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.

211 questions
3
votes
1 answer

How do I keep Spyne from wrapping my response?

Here is the sample service NS = 'my_app_namespace' class MyMethodRS(ComplexModel): __tns__ = NS Version = XmlAttribute(Unicode) class MyService(ServiceBase): __tns__ = NS @srpc(Unicode, _returns=MyMethodRS,…
Anton Egorov
  • 1,174
  • 1
  • 11
  • 21
3
votes
1 answer

Override WSDL port (i.e., bound URL) in spyne

It appears that Spyne sets the port in the WSDL definition according to how the service is accessed. For example, if I first (i.e., after a restart) access the service at http://domain.com/soap-api/, it will embed that URL in the WSDL. However, if I…
Josh
  • 12,896
  • 4
  • 48
  • 49
3
votes
1 answer

How can I use Basic Authentication with Spyne in Django?

How can I use Basic Authentication with Spyne in Django? I attempted the below but it isn't working. I can view the WSDL page file fine, but I'm getting a 403 FORBIDDEN response whenever I actually try to call SayHello as a web service. I believe…
Charlie
  • 151
  • 1
  • 1
  • 5
2
votes
1 answer

How can I built a soap server from WSDL file?

I'm trying to create a soap server from WSDL file. I'm using Python 3 and Spyne for generate it. This server need to be specific, because the client already exists. I need that my WSDL request looks like the following
Estefanía
  • 23
  • 5
2
votes
1 answer

SOAP server in flask python3

the spyne lib can create wsdlserver, the wsdl example code: from spyne.application import Application from spyne.decorator import rpc from spyne import ServiceBase, String from spyne.protocol.soap import Soap11 from spyne.server.wsgi import…
gcdsss
  • 357
  • 3
  • 14
2
votes
0 answers

Python - Is there any swagger for Spyne RPC toolkit?

I have been provided with a project where the API is written with spyne. Now I have to implement a swagger UI (if there is any) for this project. I have done my research but couldn't find any. Is it actually possible to integrate a swagger?
Proteeti Prova
  • 1,079
  • 4
  • 25
  • 49
2
votes
1 answer

How to override call_wrapper method of Spyne in Django 1.9?

I am using Django 1.9 to expose SOAP 1.1 API with Spyne version 2.12.16 I need to implement logging for every request XML and response XML in my platform. Django urls.py is url(r'^your_data/', DjangoView.as_view( name="YourDataService", …
2
votes
1 answer

Print out entire SOAP request in python spyne server

I have a SOAP server which is written using spyne. Here is the code: class myService(ServiceBase): @rpc(Integer, String, _returns=String) def my_method(ctx): sys.stdout.write("Request for `myService`: {}\n".format(ctx)) …
Zeinab Abbasimazar
  • 9,835
  • 23
  • 82
  • 131
2
votes
0 answers

Spyne server with complex input

I am trying to write a simple python server using Spyne, I have gone over the hello world examples, and now trying to do something a bit more sophisticated. Sadly, there are little to no examples for this (or at least, I couldn't find anything…
Gal Mor
  • 85
  • 1
  • 13
2
votes
1 answer

Spyne support user authentication?

I'm new to Sypne, would like to build a webservice, but not open to all, only to specified users. Any support documentation, example or any other packages needed? I'm using Django as the web framework. Thanks!
Robin LI
  • 41
  • 7
2
votes
1 answer

How to get the element name with a hyphen on a Spyne WebServer?

I am using Spyne to create a WebService from an existing WSDL (we can not change any element names, etc.). I am facing this issue that one element name has a hyphen. The code fragment is below: class RequestType(ComplexModel): _type_info = [ …
Vitaliy Pak
  • 333
  • 2
  • 10
2
votes
0 answers

How to make a complexType that extends a simpleType

I have to implement a service with spyne that exposes a specific wsdl right now I'm unable to replicate this definition:
dvd
  • 1,014
  • 6
  • 12
2
votes
1 answer

How to use multiple decorators with spyne

I have a problem with multiple decorators with spyne. I want to add universal try/except decorator to each method in class. My code looks like this: def try_except(fn): def wrapped(*args, **kwargs): try: return…
miked
  • 23
  • 3
2
votes
0 answers

Pass multiple arguments to spyne soap method separately

I want to use Spyne to create a web-service in Django with SOAP inputs and outputs. The problem is spyne generates the WSDL file so that a client needs to pass all the arguments as one object. Consider Sypne's own hello world example, when I want to…
VahidM
  • 287
  • 1
  • 2
  • 14
2
votes
1 answer

How do I add custom SOAP Headers with specific namespaces and prefixes with Spyne?

I'm trying to emulate an existing Axis 1.4 Service using Django + Spyne 2.11/2.12.x and need WS-security Timestamp token with specific namespace prefixes (wsse / wsu). I use this with a suds digital signature plugin (sudssigner) which already works…
erny
  • 1,296
  • 1
  • 13
  • 28
1
2
3
14 15