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 do I access SOAP headers in a Spyne srpc method?

Forgive me if I am just being thick but the Spyne documentation on headers seems a bit thin and the link to the sample code is broken. I think I found the sample code here but it only seems to access the headers in a listener callback function. I…
ThatAintWorking
  • 1,330
  • 20
  • 32
0
votes
1 answer

Spyne: array of 1 or more integers

I have this service: class CategoryService(ServiceBase): @rpc(Array(Integer(min_occurs=1, max_occurs='unbounded', nillable=False), **MANDATORY), _returns=Iterable(Category, **MANDATORY)) def get_subcategories_by_path(ctx,…
warvariuc
  • 57,116
  • 41
  • 173
  • 227
0
votes
3 answers

From Spyne to Suds

I'm trying to use a combination of Spyne and Suds(although I'm not very particular on using Suds) to create a module which functions as a middleman between two SOAP entities. There is a client, C, which connects to server S, calls a method M, which…
Vlad Wing
  • 69
  • 10
0
votes
1 answer

How do I run a Spyne application from web.py?

I have a working web.py application, and a working Spyne application. I'd like to make web.py route requests to the spyne app when matching a certain url. I tried with a wrapper as per web.py docs but no luck. in myspyne.py: import…
Giacomo Lacava
  • 1,784
  • 13
  • 25
0
votes
1 answer

Set up spyne to skip a field which is not present in SOAP request?

I have a SQLALchemy model with such a column: updated_at = Column(DateTime, nullable=False, server_default=func.now(), onupdate=func.now()) Which generates WSDL:
warvariuc
  • 57,116
  • 41
  • 173
  • 227
0
votes
1 answer

Attach a custom view to spyne

I am using Spyne to provide SOAP interface to my backend, but a need one or more custom views accessible on certain URLS. For example to show some statistics in HTML. How do i do that?
warvariuc
  • 57,116
  • 41
  • 173
  • 227
0
votes
0 answers

XMLSyntaxError when attempting to call method on Spyne server

At this point I've tested my Spyne server with suds and everything's working. My client has also successfully communicated with the server using SoapUI. With that set, we've moved out to the test environment for his application and, now, things are…
Josh
  • 12,896
  • 4
  • 48
  • 49
0
votes
1 answer

Name customization for attribute_of

I'm playing with attribute_of and spyne 2.10 (very glad it's out). Let's consider following model: class Product(ComplexModel): id = complex.XmlAttribute(primitive.Uuid) edition = primitive.Unicode edition_id =…
kbec
  • 3,415
  • 3
  • 27
  • 42
0
votes
1 answer

Overriding namespace in array content

I have following: from spyne.service import ServiceBase from spyne.util import xml from spyne.model import complex, primitive class ComplexModel(complex.ComplexModelBase): __namespace__ = 'http://xml.candyshop.com/ns/candies/' …
kbec
  • 3,415
  • 3
  • 27
  • 42
0
votes
1 answer

Cannot use mandatory uuid (or other pattern-related must-be type) as rpc argument

I have webservice like this: class ExampleService(ServiceBase): __tns__ = 'http://xml.company.com/ns/example/' @rpc(Mandatory.Uuid, _returns=Unicode) def say_my_uuid(ctx, uuid): return 'Your UUID: %s' % uuid @classmethod …
kbec
  • 3,415
  • 3
  • 27
  • 42
0
votes
1 answer

Does Spyne support proxies?

I would like to use Spyne to call ASP.Net web services with SOAP. Does Spyne support proxies? (I'm using Python 2.6)
kalin
  • 89
  • 1
  • 7
0
votes
1 answer

python spyne service - base64 strings come escaped

I have a simple spyne service: class JiraAdapter(ServiceBase): @srpc(Unicode, String, Unicode, _returns=Status) def CreateJiraIssueWithBase64Attachment(summary, base64attachment, attachment_filename): status = Status try: …
abolotnov
  • 4,282
  • 9
  • 56
  • 88
-1
votes
1 answer

spyne with DispatcherMiddleware modifying request header

My application is getting messages from different clients and sending information to different flask and spyne servers. In some cases method in ctx.method_request_string is different than the method in the request header and we use…
-1
votes
2 answers

how can I change django application server port number in spyne

I am trying to run the spyne Django soap server project on my computer but I can't run the project because the default port number which is 8000, is already in use so I want to change the port number of django soap server. the related project the…
acun
  • 57
  • 4
-1
votes
1 answer

Spyne request debug

i have a spyne server, and often i have to debug weird calls behavior. I am using eclipse pyDev to develop end debug. The main difficulty is to know the XML content the other part posted, which i have found to be able to read setting a debug point…
Garfius
  • 39
  • 8
1 2 3
14
15