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
0
votes
1 answer

How to model SOAP remote procedure attribute in spyne?

I have the following SOAP Request, that I should be able to handle:
Enno Gröper
  • 4,391
  • 1
  • 27
  • 33
0
votes
1 answer

Spyne: Spyne: XML/XSD schema Validation

My testing spyne soap server listen a client that sending a soap request exactly like this:
2016-01-12T18:22:58.1909735-02:00
pazt
  • 11
  • 1
  • 3
0
votes
0 answers

How to soap api authenticate with certification using Spyne in Python

I am new to the soap api with python, And I am using the spyne. That I need to access the soap api with certification (.crt file). Is there any way to access soap api with ".crt" file or any other libraries available for python to access the shop…
Mohammed Yasin
  • 487
  • 7
  • 12
0
votes
1 answer

How can I prevent Spyne from adding a xml-namespace import whenever I import its package?

I have defined a simple SOAP-service in Spyne. When I run my server like using the run module functionality of python like this: python -m my_module.service then everything's fine. But when I run it from a wrapper script like…
AME
  • 2,499
  • 5
  • 29
  • 45
0
votes
1 answer

How to change to increase xml size by spyne?

I use spyne for my SOAP project. It works perfectly. But if I want to receive big files I see this error from spyne: internal error: Huge input lookup This error comes from lxml library. To fix it I have to change huge_tree property in XmlDocument…
faoxis
  • 1,912
  • 5
  • 16
  • 31
0
votes
0 answers

How to increase maximum size of the file in spyne?

I use spyne library for my soap service. There I have the line: __in_protocol__ = Soap11(validator='lxml'). Problem is maximum size of lxml file. It's 10 mb. That means I can't transmit files more then 10 mb via spyne. How can I fix it…
faoxis
  • 1,912
  • 5
  • 16
  • 31
0
votes
1 answer

how to get the client IP in spyne service

I use the Spyne lib as soap web service and implement a interface to provide registration function for clients. But I don't know how to get the client IP in function body. @srpc(String,String,String,_returns=String) def register(): #I…
leaf
  • 13
  • 2
0
votes
0 answers

Spyne RPC server recv() failed (104: Connection reset by peer)

I built a RPC server using Python 2.7 on Mac OS (AL Captian) by using the python Spyne wsgi application. The code is as follows: hostname = "localhost" port = 8000 application = Application([PybedictorService], …
Gauss Lee
  • 93
  • 10
0
votes
1 answer

Error running spyne example on Windows

I tried running a spyne example. This same example works on Linux but on Windows gives following error- File "helloWorld.py", line 14, in class HelloWorldService(ServiceBase): File "helloWorld.py", line 15, in HelloWorldService …
Ashutosh
  • 1,000
  • 15
  • 39
0
votes
1 answer

Send XLS with Spyne

I have a problem.. I want to send XLS throught webservices with spyne, but I need, that if this URL http://127.0.0.1:5000/download/file?A=1 will be pressed, whole XLS will download. Is this possible? Here is mine code: class…
0
votes
1 answer

Remove response array wrapper in spyne httprpc -> json

Out of the box Spyne seems to wrap an output JSON(P) message in an array. With out_protocol=JsonP('serviceResp', ignore_wrappers=True), I get ~ serviceResp([{ ... }]); With out_protocol=JsonP('serviceResp', ignore_wrappers=False), It…
0
votes
1 answer

Send request on webservice from URL

I have SOAP webservice written in python with Spyne module.. This is it: class Function(spyne.Service): __service_url_path__ = '/soap'; __in_protocol__ = Soap11(validator='lxml'); __out_protocol__ = Soap11(); @spyne.srpc(Unicode,…
0
votes
1 answer

python xsd within soap response

I'm using spyne for generating web services in the server side with python to communicate with an excel client (xmla plugin), and I have some difficulties to generate a soap response that match with the client request, what I want is a soap response…
0
votes
1 answer

spyne - How to get a wrapping element surrounding a complex type

I want to recreate the following wsdl type definition
0x00F
  • 50
  • 7
0
votes
1 answer

How to return XLS file with spyne?

I am trying to return XLS file throught webservice created with spyne. Here is mine code, now, I don't know what to do.. @spyne.srpc(Unicode, _returns=Iterable(Unicode)) def Function(A): GetXLS(A) kalist = open("file.xls", 'r'); …