J. C. M. H.
J. C. M. H.

Reputation: 149

About django wrapper example in spyne documentation

I have just tried the django wrapper example in spyne documentation; but I don't understand it very well. I already tried the hello world example, and I could use suds to test the Spyne service, according to documentation, with the following code lines:

from suds.client import Client
hello_client = Client('http://localhost:7789/?wsdl')
print hello_client.service.say_hello("Dave", 5),

I know the default address for a django server is http://localhost:8000, therefore I assumed that I only had to change the second code line; but this thing didn't work. Which could be the code for trying the Spyne service with the suds client? Thanks in advance.

Upvotes: 1

Views: 1102

Answers (1)

Anentropic
Anentropic

Reputation: 33923

Looking at this file
https://github.com/arskom/spyne/blob/master/examples/django/rpctest/urls.py

...I think you may have to change your url above to

hello_client = Client('http://localhost:8000/api/?wsdl') 

Upvotes: 3

Related Questions