Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Writing a Jazz Web REST Service error

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?

0 votes



2 answers

Permanent link
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

1 vote


Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Oct 20 '09, 9:26 p.m.

Question was seen: 6,784 times

Last updated: Oct 20 '09, 9:26 p.m.

Confirmation Cancel Confirm