It's all about the answers!

Ask a question

oslc xml converting encoded


xx xx (461616) | asked Dec 15 '10, 1:19 p.m.
I use workitem.xml or json

it returns some informations like _zSfg4PR0Ed6ClsrZI3zDaA.For example:

<dc:creator rdf:resource="https://gtrtctestsrv:9443/jazz/oslc/users/_zSfg4PR0Ed6ClsrZI3zDaA"/>

How can i convert from _zSfg4PR0Ed6ClsrZI3zDaA to readable part?

2 answers



permanent link
Brent Barkman (156) | answered Dec 15 '10, 3:06 p.m.
JAZZ DEVELOPER
That value for the user isn't encoded but rather the itemid of the user. If you fetch that resource you can retrieve the users userid which can be used in place of the itemid, so for instance if that itemid was for user ADMIN you can use https://gtrtctestsrv:9443/jazz/oslc/users/ADMIN if you want a human-friendly url to the ADMIN user resource.

permanent link
Patrick Streule (4.9k21) | answered Dec 16 '10, 4:53 a.m.
JAZZ DEVELOPER
On 12/15/10 7:23 PM, lordyiz wrote:
I use workitem.xml or json

it returns some informations like _zSfg4PR0Ed6ClsrZI3zDaA.For
example:

dc:creator
rdf:resource="https://gtrtctestsrv:9443/jazz/oslc/users/_zSfg4PR0Ed6ClsrZI3zDaA"/

How can i convert from _zSfg4PR0Ed6ClsrZI3zDaA to readable part?


Just fetch the contents at
https://gtrtctestsrv:9443/jazz/oslc/users/_zSfg4PR0Ed6ClsrZI3zDaA, and
you will get a resource describing the user, including its name, e-mail
address etc.

--
Regards,
Patrick
RTC Work Item Component Lead

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.