Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] wsStem vs WsStem in returned xml

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] wsStem vs WsStem in returned xml


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Colin Hudler <>, Grouper Users Mailing List <>
  • Subject: RE: [grouper-users] wsStem vs WsStem in returned xml
  • Date: Wed, 14 Jan 2009 12:55:14 -0500
  • Accept-language: en-US
  • Acceptlanguage: en-US

Yeah, that is due to xstream java library which will use the field name
(lower case) if it is a field of an object, but maybe the Object name
(uppercase) when it is not (e.g. a list of things?). Anyways, if you need
this, I can put aliases on the things I believe so it is always starting with
lower case letters (you want all tags to start with lower case letters or
just some), and I would assume since the API is out there, its hard to just
make this change by default; this would be an option you could set in the
server or the request, right?

Thanks,
Chris

> -----Original Message-----
> From: Colin Hudler
> [mailto:]
> Sent: Wednesday, January 14, 2009 12:01 PM
> To: Grouper Users Mailing List
> Subject: [grouper-users] wsStem vs WsStem in returned xml
>
> When using RESTlite web-services, if I create a stem, it will return
> something like this:
>
> <WsStemSaveLiteResult>
> <resultMetadata>
> <resultCode> "SUCCESS_INSERTED" </resultCode>}
> [snip!]
> </resultMetadata>
> <responseMetadata>
> <millis> "3653" </millis>
> <serverVersion> "v1_4_000" </serverVersion>
> </responseMetadata>
> <wsStem>
> <extension> "test" </extension>
> [snip!]
> </wsStem>
> </WsStemSaveLiteResult>
>
> But when I fetch a stem with findStem:
>
> <WsFindStemsResults>
> <stemResults>
> <WsStem>
> <extension> "test" </extension>
> </WsStem>
> </stemResults>
> <resultMetadata>
> <resultCode> "SUCCESS" </resultCode>}
> </resultMetadata>
> </WsFindStemsResults>
>
>
> See how it is sometimes WsStem and others wsStem? This frustrates use
> of XPath, and I was wondering if a change would be considered. I can
> work around it, of course, by walking through the documents myself, or
> maybe using XPath transform. Any other suggestions are appreciated.
>
> --
> Colin Hudler



Archive powered by MHonArc 2.6.16.

Top of Page