Skip to Content.
Sympa Menu

grouper-users - [grouper-users] RE: Grouper WS REst calls using Subject identifiers

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] RE: Grouper WS REst calls using Subject identifiers


Chronological Thread 
  • From: "Doppala, Karthik" <>
  • To: Chris Hyzer <>, "" <>
  • Subject: [grouper-users] RE: Grouper WS REst calls using Subject identifiers
  • Date: Fri, 9 May 2014 21:31:24 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;

Hi Chris,

Thanks for the information!

Following are the URLs I have used for getSubject, getGroup, addMember and deleteMember, they are slightly different from your example below; but they work.

 

/servicesRest/xml/v2_1_5/subjects?wsLiteObjectType=WsRestGetSubjectsLiteRequest&subjectIdentifier=asdfsdf

 

/servicesRest/xml/v2_1_5/subjects/1swefsad /groups?wsLiteObjectType=WsRestGetGroupsLiteRequest&subjectIdentifier=1swefsad

 

/servicesRest/xml/v2_1_5/groups/ucla:devtest-folderid:datta-testgroup1-id/members/ wltong51?wsLiteObjectType=WsRestAddMemberLiteRequest&subjectIdentifier=wltong51

 

/servicesRest/xml/v2_1_5/groups/ucla:devtest-folderid:datta-testgroup1-id/members/1354456666?wsLiteObjectType=WsRestDeleteMemberLiteRequest&subjectIdentifier=1354456666

 

 

Thanks,

Karthik

 

 

 

 

From: Chris Hyzer [mailto:]
Sent: Thursday, May 01, 2014 6:11 PM
To: Doppala, Karthik;
Subject: RE: Grouper WS REst calls using Subject identifiers

 

You can pass in params…

 

e.g. look at this example

 

http://anonsvn.internet2.edu/viewvc/viewvc.py/i2mi/trunk/grouper-ws/grouper-ws/doc/samples/getGroups/WsSampleGetGroupsRestLite2_withInput_http_json.txt?revision=8390&view=co

 

You can use something like this for the URL:

 

/grouper-ws/servicesRest/v2_0_000?wsLiteObjectType=WsRestGetGroupsLiteRequest&subjectIdentifier=jsmith

 

The params are fields of this object I believe

 

http://www.internet2.edu/grouper/release/1.6.0/ws/api/edu/internet2/middleware/grouper/ws/rest/group/WsRestGetGroupsLiteRequest.html?view=co

 

I didn’t try it, if it doesn’t work I can test it to be sure J  Basically you can do things with params and not worry about the url path.  Or this might work as well, not sure:

 

/grouper-ws/servicesRest/v2_1_001/subjects/subjectIdentifier/jsmith/groups

 

Chris

 

 

From: Doppala, Karthik []
Sent: Thursday, May 01, 2014 6:52 PM
To: Chris Hyzer;
Subject: RE: Grouper WS REst calls using Subject identifiers

 

Hi Chris,

So for SOAP; my payload is as follows using a subject identifier:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://soap_v2_1.ws.grouper.middleware.internet2.edu/xsd">

   <soapenv:Header/>

   <soapenv:Body>

      <xsd:getGroupsLite >

         <xsd:clientVersion>2.0.0</xsd:clientVersion>

         <xsd:subjectIdentifier>>

          </xsd:getGroupsLite>

   </soapenv:Body>

</soapenv:Envelope>

 

What is the corresponding Rest call using subjectIdentifier

We use PPID as our Subject_ID

 

http:// dev.it.ucla.edu:8080/grouper-ws/servicesRest/xml/v2_1_5/subjects/Subject_ID works fine.

 

I am trying to make a similar call using subjectIdentifier.

 

Thanks,

Karthik

 

From: Chris Hyzer []
Sent: Wednesday, April 30, 2014 7:32 PM
To: Doppala, Karthik;
Subject: RE: Grouper WS REst calls using Subject identifiers

 

All of the web service transports support the exact same functions… so rest calls do support subject identifiers.  Can you give an example of what you are trying?

 

Thanks,

Chris

 

From: [] On Behalf Of Doppala, Karthik
Sent: Wednesday, April 30, 2014 6:32 PM
To:
Subject: [grouper-users] Grouper WS REst calls using Subject identifiers

 

Hi ,

It doesn’t seem like the Rest calls support the use of subject identifiers unlike SOAP, is that right? Could someone please confirm this.

 

Thanks,

Karthik




Archive powered by MHonArc 2.6.16.

Top of Page