grouper-users - RE: [grouper-users] Complex SOAP query example?
Subject: Grouper Users - Open Discussion List
List archive
- From: Chris Hyzer <>
- To: Martin van Es <>, Grouper Users Mailing List <>
- Subject: RE: [grouper-users] Complex SOAP query example?
- Date: Wed, 4 Mar 2009 11:33:27 -0500
- Accept-language: en-US
- Acceptlanguage: en-US
You are correct, sorry about that, they are switched. I just committed a fix
to the 1.4 branch. It should take an hour or two to propagate the anonymous
CVS, and then you should be all set. I left the bug open so I can add a test
case for this, but it should work now.
https://bugs.internet2.edu/jira/browse/GRP-245
Regards,
Chris
> -----Original Message-----
> From: Martin van Es
> [mailto:]
> Sent: Wednesday, March 04, 2009 11:06 AM
> To: Grouper Users Mailing List
> Subject: Re: [grouper-users] Complex SOAP query example?
>
> Hi,
>
> I've found the answer to my question below, but now am completely
> stupified by
> the logic used in the logical FilterTypes:
>
> To receive the union of two queryFilters, I have to AND them, instead
> of
> OR'ing them? My (SQL) programmer's instinct would say that for the
> result of 2
> distinct tests to be united, I need a logical OR.
>
> The only way I can explain the FilterType AND is when I look at it like
> a
> 'bitwise' AND: that way, the AND stands for some sort of 'plus'
> operation?
> Anyway, quite confusing.
>
> The answer (for those interrested) to my original question is:
>
> <ns1:wsQueryFilter>
> <ns1:queryFilter0>
> <ns1:groupName>aGr</ns1:groupName>
>
> <ns1:queryFilterType>FIND_BY_GROUP_NAME_APPROXIMATE</ns1:queryFilterTyp
> e>
> </ns1:queryFilter0>
> <ns1:queryFilter1>
> <ns1:groupName>bGr</ns1:groupName>
>
> <ns1:queryFilterType>FIND_BY_GROUP_NAME_APPROXIMATE</ns1:queryFilterTyp
> e>
> </ns1:queryFilter1>
> <ns1:queryFilterType>AND</ns1:queryFilterType>
> </ns1:wsQueryFilter>
>
>
> On Monday 02 March 2009 13:01:34 Martin van Es wrote:
> > Hi,
> >
> > I can't seem to find any example that shows how to nest complex
> queries.
> >
> > If the xml for a simple (non-lite) query of "find groups by
> approximate
> > name aGr" looks like this (findGroups SOAP example).
> >
> > <ns1:wsQueryFilter>
> > <ns1:groupName>aGr</ns1:groupName>
> >
> <ns1:queryFilterType>FIND_BY_GROUP_NAME_APPROXIMATE</ns1:queryFilterTyp
> e>
> > </ns1:wsQueryFilter>
> >
> > What would the equivalent of "find groups with approx name aGr OR
> approx
> > name bGr" be? I'm struggling with the placement of the 'OR' and the
> > FilterType/groupName structures.
> >
> > Regards,
> > Martin van Es
- Complex SOAP query example?, Martin van Es, 03/02/2009
- Re: [grouper-users] Complex SOAP query example?, Martin van Es, 03/04/2009
- RE: [grouper-users] Complex SOAP query example?, Chris Hyzer, 03/04/2009
- Re: [grouper-users] Complex SOAP query example?, Martin van Es, 03/04/2009
Archive powered by MHonArc 2.6.16.