grouper-users - [grouper-users] RE: Grouper 1.6 groupSaveLite webservice
Subject: Grouper Users - Open Discussion List
List archive
- From: Chris Hyzer <>
- To: Richard James <>, "" <>
- Subject: [grouper-users] RE: Grouper 1.6 groupSaveLite webservice
- Date: Sun, 25 Jul 2010 17:03:09 -0400
- Accept-language: en-US
- Acceptlanguage: en-US
This is weird. I don't get the same results. Maybe something is
transmitting twice? Can you listen on a non-SSL port and use a proxy that
captures the traffic? Or check the access logs if apache is fronting tomcat?
Here are my requests/responses on the latest 1.6 branch which I think should
behave the same way in this regard as 1.6.0. Note below: SUCCESS_INSERTED
and SUCCESS_UPDATED.
Btw, the soap and rest (which client uses) runs the same logic, so if the
client works for you, then it seems like it is something with your soap
client? Not sure... if you are what exact network architecture do you have?
Thanks,
Chris
########################
## GROUP INSERT
########################
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns1:groupSaveLite
xmlns:ns1="http://soap.ws.grouper.middleware.internet2.edu/xsd">
<ns1:clientVersion>v1_6_000</ns1:clientVersion>
<ns1:groupLookupUuid></ns1:groupLookupUuid>
<ns1:groupLookupName>aGroup:test</ns1:groupLookupName>
<ns1:groupUuid></ns1:groupUuid>
<ns1:groupName>aStem:test</ns1:groupName>
<ns1:displayExtension>the test group</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>
</soapenv:Body>
</soapenv:Envelope>
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<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>296</ns:millis>
<ns:resultWarnings
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true" />
<ns:serverVersion>1.6.1</ns:serverVersion>
</ns:responseMetadata>
<ns:resultMetadata
type="edu.internet2.middleware.grouper.ws.soap.WsResultMeta">
<ns:params xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true" />
<ns:resultCode>SUCCESS_INSERTED</ns:resultCode>
<ns:resultCode2
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true" />
<ns:resultMessage>Success for: clientVersion: 1.6.0,
wsGroupToSaves: Array size: 1: [0]: WsGroupToSave[
wsGroupLookup=WsGroupLookup[uuid=,groupName=aGroup:test],
wsGroup=WsGroup[displayExtension=the test group,description=test
group,name=aStem:test,uuid=],saveMo...
, 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</ns:description>
<ns:detail xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true" />
<ns:displayExtension>the test group</ns:displayExtension>
<ns:displayName>aStem:the test group</ns:displayName>
<ns:extension>test</ns:extension>
<ns:name>aStem:test</ns:name>
<ns:uuid>0332e6f0fb744961ab30080c231ac056</ns:uuid>
</ns:wsGroup>
</ns:return>
</ns:groupSaveLiteResponse>
</soapenv:Body>
</soapenv:Envelope>
########################
## GROUP UPDATE
########################
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ns1:groupSaveLite
xmlns:ns1="http://soap.ws.grouper.middleware.internet2.edu/xsd">
<ns1:clientVersion>v1_6_000</ns1:clientVersion>
<ns1:groupLookupUuid></ns1:groupLookupUuid>
<ns1:groupLookupName>aStem:test</ns1:groupLookupName>
<ns1:groupUuid></ns1:groupUuid>
<ns1:groupName>aStem:test</ns1:groupName>
<ns1:displayExtension>the test group</ns1:displayExtension>
<ns1:description>new description</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>
</ns1:groupSaveLite>
</soapenv:Body>
</soapenv:Envelope>
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<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>78</ns:millis>
<ns:resultWarnings
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true" />
<ns:serverVersion>1.6.1</ns:serverVersion>
</ns:responseMetadata>
<ns:resultMetadata
type="edu.internet2.middleware.grouper.ws.soap.WsResultMeta">
<ns:params xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true" />
<ns:resultCode>SUCCESS_UPDATED</ns:resultCode>
<ns:resultCode2
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true" />
<ns:resultMessage>Success for: clientVersion: 1.6.0,
wsGroupToSaves: Array size: 1: [0]: WsGroupToSave[
wsGroupLookup=WsGroupLookup[uuid=,groupName=aStem:test],
wsGroup=WsGroup[displayExtension=the test group,description=new
description,name=aStem:test,uuid=],sa...
, 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>new description</ns:description>
<ns:detail xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true" />
<ns:displayExtension>the test group</ns:displayExtension>
<ns:displayName>aStem:the test group</ns:displayName>
<ns:extension>test</ns:extension>
<ns:name>aStem:test</ns:name>
<ns:uuid>0332e6f0fb744961ab30080c231ac056</ns:uuid>
</ns:wsGroup>
</ns:return>
</ns:groupSaveLiteResponse>
</soapenv:Body>
</soapenv:Envelope>
-----Original Message-----
From:
[mailto:]
On Behalf Of Richard James
Sent: Friday, July 23, 2010 10:31 AM
To:
Subject: [grouper-users] Grouper 1.6 groupSaveLite webservice
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
- [grouper-users] Grouper 1.6 groupSaveLite webservice, Richard James, 07/23/2010
- [grouper-users] RE: Grouper 1.6 groupSaveLite webservice, Chris Hyzer, 07/25/2010
- [grouper-users] RE: Grouper 1.6 groupSaveLite webservice, Richard James, 07/26/2010
- [grouper-users] RE: Grouper 1.6 groupSaveLite webservice, Chris Hyzer, 07/25/2010
Archive powered by MHonArc 2.6.16.