It's all about the answers!

Ask a question

Writing a Jazz Web REST Service error


os waldl (4675) | asked Oct 20 '09, 9:26 p.m.
hi, i am trying to write a rest service following this page
http://jazz.net/library/LearnItem.jsp?href=content/docs/web-ui-programming/web-ui-todo-rest.html
and i got this error when i import the code:
The method getRepositoryItemService() is undefined for the type TodoRestService
at source:
public IContributor getContributor() throws TeamRepositoryException {
return (IContributor) getRepositoryItemService().fetchItem(
getAuthenticatedContributor(), null);
}
Anyone has encountered the same error?

2 answers



permanent link
Patrick Streule (4.9k21) | answered Oct 21 '09, 3:37 a.m.
JAZZ DEVELOPER
hi, i am trying to write a rest service following this page
http://jazz.net/library/LearnItem.jsp?href=content/docs/web-ui-programming/web-ui-todo-rest.html
and i got this error when i import the code:
The method getRepositoryItemService() is undefined for the type
TodoRestService
at source:
public IContributor getContributor() throws TeamRepositoryException
{
return (IContributor) getRepositoryItemService().fetchItem(
getAuthenticatedContributor(), null);
}
Anyone has encountered the same error?

The document dates back to 2007 and is a bit outdated.

getRepositoryItemService() was removed. You can get the service like any
other service by calling:

getService(IRepositoryItemService.class)

--
Regards,
Patrick
Jazz Work Item Team

permanent link
os waldl (4675) | answered Oct 21 '09, 3:44 a.m.
COPY that :)

hi, i am trying to write a rest service following this page
http://jazz.net/library/LearnItem.jsp?href=content/docs/web-ui-programming/web-ui-todo-rest.html
and i got this error when i import the code:
The method getRepositoryItemService() is undefined for the type
TodoRestService
at source:
public IContributor getContributor() throws TeamRepositoryException
{
return (IContributor) getRepositoryItemService().fetchItem(
getAuthenticatedContributor(), null);
}
Anyone has encountered the same error?

The document dates back to 2007 and is a bit outdated.

getRepositoryItemService() was removed. You can get the service like any
other service by calling:

getService(IRepositoryItemService.class)

--
Regards,
Patrick
Jazz Work Item Team

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.