13.06.2014 Views

musician web-service using ruby-on-rails, soap ... - Rivier University

musician web-service using ruby-on-rails, soap ... - Rivier University

musician web-service using ruby-on-rails, soap ... - Rivier University

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

John A. Di<strong>on</strong><br />

4.3 Web-<str<strong>on</strong>g>service</str<strong>on</strong>g> Functi<strong>on</strong>s<br />

Core API Methods<br />

member_remove – implemented <strong>on</strong>ly in n<strong>on</strong>-flex applicati<strong>on</strong><br />

Allows the administrator to remove the member.<br />

member_add – implemented in all<br />

Add a member is handled during signup.<br />

member_view – implemented in all<br />

Individual member details, not viewable by user.<br />

member_edit – implemented <strong>on</strong>ly in n<strong>on</strong>-flex applicati<strong>on</strong> for security reas<strong>on</strong>s<br />

member_login – implemented in all<br />

Login informati<strong>on</strong>, not viewable by user.<br />

member_logout – implemented in all<br />

Logout call, sessi<strong>on</strong> closed.<br />

get_band_id – implemented in all<br />

Band id associated with this user, not viewable by user.<br />

c<strong>on</strong>tact_remove – implemented in all<br />

C<strong>on</strong>tact removed by user id after being authenticated against the member id.<br />

c<strong>on</strong>tact_add – implemented in all<br />

C<strong>on</strong>tact added and associated with band id.<br />

c<strong>on</strong>tact_view – implemented in all<br />

C<strong>on</strong>tact viewed <strong>on</strong>ly after being authenticated against the member id.<br />

c<strong>on</strong>tact_list – implemented in all<br />

C<strong>on</strong>tacts viewed <strong>on</strong>ly after being authenticated against the member id.<br />

c<strong>on</strong>tact_edit – implemented in all<br />

C<strong>on</strong>tact edited by user id after being authenticated against the member id.<br />

gig_remove – implemented in all<br />

Event removed after being authenticated against the member id.<br />

gig_add – implemented in all<br />

Event added and associated with band id.<br />

gig_view – implemented in all<br />

Event viewed after being authenticated against the member id.<br />

gig_edit – implemented in all<br />

Event edited after being authenticated against the member id.<br />

gig_list – implemented in all<br />

Events viewed after being authenticated against the member id.<br />

job_remove – implemented <strong>on</strong>ly in n<strong>on</strong>-flex applicati<strong>on</strong> for security reas<strong>on</strong>s<br />

job_add – implemented <strong>on</strong>ly in n<strong>on</strong>-flex applicati<strong>on</strong> for security reas<strong>on</strong>s<br />

job_view – implemented <strong>on</strong>ly in n<strong>on</strong>-flex applicati<strong>on</strong> for security reas<strong>on</strong>s<br />

job_edit – implemented <strong>on</strong>ly in n<strong>on</strong>-flex applicati<strong>on</strong> for security reas<strong>on</strong>s.<br />

4.4 Implementati<strong>on</strong> Details<br />

A SOAP-based remote procedure call is made from the client base <strong>on</strong> a user acti<strong>on</strong>. All data is passed<br />

through the <str<strong>on</strong>g>web</str<strong>on</strong>g>-<str<strong>on</strong>g>service</str<strong>on</strong>g> API called bandmanager_api.rb. The implementati<strong>on</strong> for the bandmanager_api<br />

Copyright © 2006 by John A. Di<strong>on</strong>. Published by <strong>Rivier</strong> College, with permissi<strong>on</strong>. 6<br />

ISSN 1559-9388 (<strong>on</strong>line versi<strong>on</strong>), ISSN 1559-9396 (CD-ROM versi<strong>on</strong>).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!