Skip to content

pubfox/webservices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webservices

A reusable django webservices app.

How to install

  1. Clone this app into your django project as an app.
  2. Update your django project settings.py to add webservices app.
  3. Update your django project urls.py to serve the webservice requests.
  4. Restart your django server.

settings.py

INSTALLED_APPS += ('webservices', )

urls.py

urlpatterns = patterns('',
    url(r'^soap/','webservices.views.soap_services', name='soap_services'), #Added here
)

Test

wsdl:

http://yourhost/soap/?wsdl

rpc:

http://yourhost/soap/get_user?userid=1&username=Tom

soap:

from suds.client import Client
client = Client(url='http://yourhost/soap/?wsdl')
print client
print client.service.get_user(userid=1, username='Tom')

About

A reusable django webservices app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published