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
1
vote
1 answer

spyne - generating xsd for requests that does not require explicit statement of namespace for each input parameter

At present, my Spyne-based WSGI application generates XSDs for requests like the following:
ninapberry
  • 111
  • 1
  • 3
1
vote
0 answers

Python simple spyne SOAP web service slow response

I have a created a very simple SOAP wsgi webserver in Python using spyne, which only has a returnint() service: from spyne.protocol.soap import Soap11 from spyne.server.wsgi import WsgiApplication from wsgiref.simple_server import make_server class…
limp
  • 889
  • 2
  • 14
  • 22
1
vote
1 answer

Using spyne, trying to produce a specific SOAP response with a XML attribute and a string value in the same element

Using spyne to process and generate SOAP request/response. For a specific SOAP response, need to generate like 123 45 Could not get that exactly Followed the tutorial of…
Raghu I
  • 45
  • 7
1
vote
2 answers

Is there any way to Call python soap spyne server with c++ Gsoap client?

Actually i have a python script and soap server running using soap spyne and i need to call that soap api using c++ gsoap client so that the python script will run and get the output as a response to client i am able to call the api using SOAP UI…
1
vote
1 answer

How to handle Spyne XSD exceptions gracefully

Whenever my Spyne application receives a request, XSD validation is performed. This is good, but whenever there is an XSD violation a fault is raised and my app returns a Client.SchemaValidationError like so:
teebagz
  • 656
  • 1
  • 4
  • 26
1
vote
0 answers

clear the cache of client web service, python

I wrote a simple server-side web service using spyne on python, and this is my client-side code: from suds.client import Client hello_client = Client('http://localhost:8000/?wsdl') print(hello_client) but when I add another service or changing the…
1
vote
1 answer

Spyne custom XML response

I am using Spyne with Django CMS. A web service is calling my system and I want to reply with the below. Can I use Spyne for customize response? Or do I have to go through models? Please advise.
user10966597
1
vote
1 answer

Fine tuning a SOAP python server with spyne in order to implement a given WSDL

I have a client with a Java soap interface. The WSDL is provided and i have to implement a server that reproduces it. The issue is that i wasn't able to fine tune my spyne made WSDL to reproduce exactly the WSDL provided and after looking into the…
Fx Davanne
  • 21
  • 5
1
vote
1 answer

How to return an object with spyne

I need to return an object from spyne server method. I read it is possible with ComplexModel but this actually has an empty result. What should I do in order to get it working properly? Here is my code: class Bndbox(ComplexModel): xmin = 0 …
jcgarciaca
  • 139
  • 12
1
vote
1 answer

Spyne Fault - HTTP Return Codes

I have read information on Spyne Faults (http://spyne.io/docs/2.10/manual/03_types.html), but cant get my head around raising a Fault properly with a 400 Return code. I have the Fault response forming properly, but with a 500 HTTP return code when I…
1
vote
1 answer

Spyne: request where input parameters have different namespaces

I found this question: https://mail.python.org/pipermail/soap/2013-June/001120.html I have the same problem, and can't find an answer. Please help. I am in the process of implementing some existing WSDL in spyne, and I'm running into a problem…
Moose
  • 152
  • 1
  • 11
1
vote
1 answer

Spyne - how to duplicate one elements of wsdl file created by spyne?

I need to duplicate one of the elements of generated wsdl file. My code is like this: class SDPSimulator(ServiceBase): @rpc(UserCredential, Unicode, Unicode, Unicode, Integer, _returns=SendSmsReturn.customize(sub_name='return')) def…
Fatemeh Rostami
  • 1,047
  • 1
  • 15
  • 27
1
vote
2 answers

Which python soap client supports spyne binary types?

I want to call a web service method that has a spyne binary type as argument. But I'm not able to find any python soap client supporting it. To debug my problem, I made a simple web service method that should print a file: # …
1
vote
0 answers

Quickbooks Web Connector - SOAP requested resource not found when using Python/Sypne

Im trying to write a python web service to integrate with Quickbooks Web Connector. Im using the Spyne api to do this but seem to be running into a problem where requested methods arent recognised. The code ive written is: class…
Amran
  • 11
  • 1
1
vote
1 answer

How to test RPC of SOAP web services?

I am currently learning building a SOAP web services with django and spyne. I have successfully tested my model using unit test. However, when I tried to test all those @rpc functions, I have no luck there at all. What I have tried in testing those…
user3555216