Skip to Content.
Sympa Menu

grouper-users - [grouper-users] Grouper 1.6 groupSaveLite webservice

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] Grouper 1.6 groupSaveLite webservice


Chronological Thread 
  • From: Richard James <>
  • To: "" <>
  • Subject: [grouper-users] Grouper 1.6 groupSaveLite webservice
  • Date: Fri, 23 Jul 2010 15:30:47 +0100
  • Accept-language: en-US, en-GB
  • Acceptlanguage: en-US, en-GB

Hi All,

First of all just want to say great work on the latest version of Grouper, we
are looking forward to rolling out some of the new features.

We've came across a minor issue which we are trying to work out the cause
for. We have successfully deployed Grouper 1.6 in a test environment, and
have been testing out the web services in particular the groupSaveLite web
service. When we come to create a new group with the attached SOAP request,
the result code states that the GROUP_ALREADY_EXISTS. Before calling the web
service we made sure that a group with the same name did not exist. I'm not
sure if it is trying to action the insert twice or if the result code is just
being interpreted incorrectly. Just as a follow up test I deployed the
grouper client on another machine, and invoked the method from there, it
successfully created the new group and returned a correct result code.

A similar behaviour exists when trying to update groups details, for example
if we try to update the description for a newly created group, it returns
SUCCESS_NO_CHANGES_NEEDED, even though it does update the description.

I'm not sure if this is a problem with our setup or if it's something within
the code which is misinterpreting the result codes.

This is just a minor issue but thought I'd best put it out there.

I've attached the SOAP requests and return results for the insert and updates
just for reference.

Regards

Richard James
ISS Middleware Team
Newcastle University


<ns:groupSaveLiteResponse xmlns:ns="http://soap.ws.grouper.middleware.internet2.edu/xsd";><ns:return type="edu.internet2.middleware.grouper.ws.soap.WsGroupSaveLiteResult"><ns:responseMetadata type="edu.internet2.middleware.grouper.ws.soap.WsResponseMeta"><ns:millis>22</ns:millis><ns:resultWarnings xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><ns:serverVersion>1.6.0</ns:serverVersion></ns:responseMetadata><ns:resultMetadata type="edu.internet2.middleware.grouper.ws.soap.WsResultMeta"><ns:params xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><ns:resultCode>GROUP_ALREADY_EXISTS</ns:resultCode><ns:resultCode2 xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><ns:resultMessage>There were 0 successes and 1 failures of saving groups.edu.internet2.middleware.grouper.exception.GroupAddAlreadyExistsException: group already exists with name: 'testStem:testGroup', stem name: testStem, group extension: testGroup, group dExtension: testGroup, uuid: , typeOfGroup: null,
Problem in HibernateSession: HibernateSession: isNew: false, isReadonly: false, grouperTransactionType: READ_WRITE_NEW,
Problem in HibernateSession: HibernateSession: isNew: false, isReadonly: false, grouperTransactionType: READ_WRITE_NEW,
Problem in HibernateSession: HibernateSession: isNew: true, isReadonly: false, grouperTransactionType: READ_WRITE_NEW</ns:resultMessage><ns:success>F</ns:success></ns:resultMetadata><ns:wsGroup type="edu.internet2.middleware.grouper.ws.soap.WsGroup"><ns:description xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><ns:detail xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><ns:displayExtension xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><ns:displayName xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><ns:extension/><ns:name/><ns:uuid/></ns:wsGroup></ns:return></ns:groupSaveLiteResponse>

<ns1:groupSaveLite
xmlns:ns1="http://soap.ws.grouper.middleware.internet2.edu/xsd";>
<ns1:clientVersion>v1_5_000</ns1:clientVersion>
<ns1:groupLookupUuid></ns1:groupLookupUuid>
<ns1:groupLookupName></ns1:groupLookupName>
<ns1:groupUuid></ns1:groupUuid>
<ns1:groupName>testStem:testGroup</ns1:groupName>
<ns1:displayExtension>testGroup</ns1:displayExtension>
<ns1:description>test group</ns1:description>
<ns1:saveMode>INSERT</ns1:saveMode>
<ns1:actAsSubjectId>GrouperSystem</ns1:actAsSubjectId>
<ns1:actAsSubjectSourceId></ns1:actAsSubjectSourceId>
<ns1:actAsSubjectIdentifier></ns1:actAsSubjectIdentifier>
<ns1:includeGroupDetail>F</ns1:includeGroupDetail>
<ns1:groupSaveLite
xmlns:ns1="http://soap.ws.grouper.middleware.internet2.edu/xsd";>
<ns1:clientVersion>v1_5_000</ns1:clientVersion>
<ns1:groupLookupUuid>834f640efa2b48eea69db5dde08c6141</ns1:groupLookupUuid>
<ns1:groupLookupName></ns1:groupLookupName>
<ns1:groupUuid></ns1:groupUuid>
<ns1:groupName>testStem:testGroup</ns1:groupName>
<ns1:displayExtension>testGroup</ns1:displayExtension>
<ns1:description>test group for Grouper 1.6</ns1:description>
<ns1:saveMode>UPDATE</ns1:saveMode>
<ns1:actAsSubjectId>GrouperSystem</ns1:actAsSubjectId>
<ns1:actAsSubjectSourceId></ns1:actAsSubjectSourceId>
<ns1:actAsSubjectIdentifier></ns1:actAsSubjectIdentifier>
<ns1:includeGroupDetail>F</ns1:includeGroupDetail>
<ns:groupSaveLiteResponse xmlns:ns="http://soap.ws.grouper.middleware.internet2.edu/xsd";><ns:return type="edu.internet2.middleware.grouper.ws.soap.WsGroupSaveLiteResult"><ns:responseMetadata type="edu.internet2.middleware.grouper.ws.soap.WsResponseMeta"><ns:millis>38</ns:millis><ns:resultWarnings xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><ns:serverVersion>1.6.0</ns:serverVersion></ns:responseMetadata><ns:resultMetadata type="edu.internet2.middleware.grouper.ws.soap.WsResultMeta"><ns:params xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><ns:resultCode>SUCCESS_NO_CHANGES_NEEDED</ns:resultCode><ns:resultCode2 xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><ns:resultMessage>Success for: clientVersion: 1.5.0, wsGroupToSaves: Array size: 1: [0]: WsGroupToSave[
  wsGroupLookup=WsGroupLookup[uuid=834f640efa2b48eea69db5dde08c6141,groupName=],
  wsGroup=WsGroup[displayExtension=testGroup,description=test group for Grouper 1...
, actAsSubject: WsSubjectLookup[subjectId=GrouperSystem,subjectIdentifier=,subjectSourceId=], txType: NONE, paramNames: 
, params: null</ns:resultMessage><ns:success>T</ns:success></ns:resultMetadata><ns:wsGroup type="edu.internet2.middleware.grouper.ws.soap.WsGroup"><ns:description>test group for Grouper 1.6</ns:description><ns:detail xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/><ns:displayExtension>testGroup</ns:displayExtension><ns:displayName>testStem:testGroup</ns:displayName><ns:extension>testGroup</ns:extension><ns:name>testStem:testGroup</ns:name><ns:uuid>834f640efa2b48eea69db5dde08c6141</ns:uuid></ns:wsGroup></ns:return></ns:groupSaveLiteResponse>




Archive powered by MHonArc 2.6.16.

Top of Page