Skip to Content.
Sympa Menu

grouper-dev - [grouper-dev] Re: more WS problems

Subject: Grouper Developers Forum

List archive

[grouper-dev] Re: more WS problems


Chronological Thread 
  • From: Scott Koranda <>
  • To: Chris Hyzer <>
  • Cc: Grouper Dev <>
  • Subject: [grouper-dev] Re: more WS problems
  • Date: Thu, 19 Apr 2012 08:33:30 -0500

Hi,

> no problem. here are the client calls and the JSON. Thanks, Chris
>
>
> #############################
> Get the membership ID
>
> Request:
>
> PUT /grouper-ws/servicesRest/v2_1_001/groups
>
> {
> "WsRestGetMembershipsRequest":{
> "fieldName":"members",
> "memberFilter":"Immediate",
> "wsGroupLookups":[
> {
> "groupName":"test:testGroup"
> }
> ],
> "wsSubjectLookups":[
> {
> "subjectId":"test.subject.0",
> "subjectSourceId":"jdbc"
> }
> ]
> }
> }
>

Thanks, but it is not working for me.

I am sending in this:

{
"WsRestGetMembershipsRequest":{
"fieldName":"members",
"memberFilter":"Immediate",
"wsGroupLookups":[
{
"groupName":"Reference:COmanageDataSource:COmanage:admin"
}
],
"wsSubjectLookups":[
{

"subjectId":"",
"subjectSourceId":"ligo"
}
]
}
}

Using this curl command:

curl -X PUT -u GrouperSystem:XXXXXXXXXX -H "Content-Type:
text/x-json" -d @getMembershipID.json
https://oregano.phys.uwm.edu/grouper-system/servicesRest/v2_1_000/groups

(I also tried with POST)

I get this:

{
"WsRestResultProblem": {
"responseMetadata": {
"millis": "14",
"serverVersion": "2.1.0"
},
"resultMetadata": {
"resultCode": "INVALID_QUERY",
"resultMessage": "Cant find GrouperWsRestGetGroup
from string: 'null', expecting one of: members, memberships, ,
uri: /grouper-ws/servicesRest/v2_1_000/groups, method: PUT,
decoded url strings: 0: 'v2_1_000', 1: 'groups'",
"success": "F"
}
}
}

Any help appreciated.

(In particular could you point me to which function here

https://spaces.internet2.edu/display/Grouper/Grouper+Web+Services

I am supposed to use. Is it Get Groups or Get Memberships or ?

Thanks,

Scott



Archive powered by MHonArc 2.6.16.

Top of Page