1 / 15

Grouper Training Developers and Architects Web Services - Part 3

Grouper Training Developers and Architects Web Services - Part 3. Chris Hyzer Internet2 University of Pennsylvania. This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License. Contents. Introduction Authentication Samples

mayten
Download Presentation

Grouper Training Developers and Architects Web Services - Part 3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Grouper TrainingDevelopers and Architects Web Services - Part 3 Chris Hyzer Internet2 University of Pennsylvania This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.

  2. Contents Introduction Authentication Samples Documentation of structs (Javabeans) Translating struct (Javabean) to: SOAP REST-like JSON REST-like XML REST-like XHTML REST-like HTTP params

  3. Introduction to WS for developers 3

  4. Authentication • Grouper WS authentication is pluggable • Depends on your institution’s config • Generally people use HTTP basic auth 4

  5. Samples • Each WS operation has samples • Samples for SOAP, REST-like, all formats • Automated, regenerated for each release • Stored in SVN, versioned, web accessible • 300 samples in v2.1 5

  6. Samples (continued) • Input • Output • Java source code • STDOUT/ERR 6

  7. Samples Versioning • Trunk is linked from documentation • Edit the URL, change “trunk” to the branch or version • E.g. for the 2.1 branch, use branches/GROUPER_2_1_BRANCH • E.g. for the 2.1.1 version, use tags/GROUPER_2_1_1 • Example of 2.1 branch sample 7

  8. WS RPC Structs (Javabeans) • Javadoc describes the RPC structs • Stored in SVN just like samples • Versioned, web accessible, etc 8

  9. SOAP sample editing • Look at a SOAP sample • Look at the Javadoc for input struct • Check the WSDL or ordering • Edit the sample 9

  10. REST-like JSON sample editing • Look at a JSON sample • Look at the Javadoc for input struct • Edit the JSON 10

  11. REST-like XML sample editing • Look at an XML sample • Look at the Javadoc for input struct • Edit the XML 11

  12. REST-like XHTML sample editing • Look at an XHTML sample • Look at the Javadoc for input struct • Edit the XHTML 12

  13. REST-like HTTP param sample editing • Look at an HTTP param sample • Look at the Javadoc for input struct • Edit the HTTP params 13

  14. Quiz • Click on the quiz link in the video description to reinforce your knowledge of this topic 14

  15. Thanks! • Further information: • Infosheets, mailing lists, wiki, downloads, etc.:www.internet2.edu/grouper • Grouper demo server:grouperdemo.internet2.edu/ • Grouper Online Training Home:spaces.internet2.edu/x/IIGfAQ This work licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.

More Related