Skip to content

A reusable django webservices app for openstack dashboard.

Notifications You must be signed in to change notification settings

July316/openstack_dashboard_webservices

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openstack_dashboard_webservices

A reusable django webservices app for openstack dashboard.

How to install

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

settings.py

INSTALLED_APPS = (
    'openstack_dashboard',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django_nose',
    'horizon',
    'horizon.dashboards.nova',
    'horizon.dashboards.syspanel',
    'horizon.dashboards.settings',
    'openstack_dashboard_webservices', #Added here
)

urls.py

urlpatterns = patterns('',
    url(r'^$', 'openstack_dashboard.views.splash', name='splash'),
    url(r'^qunit/$', 'openstack_dashboard.views.qunit_tests', name='qunit_tests'),
    url(r'^soap/','openstack_dashboard_webservices.views.soap_services', name='soap_services'), #Added here
    url(r'', include(horizon.urls)))

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 for openstack dashboard.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%