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

OSLC Query for RTC returns error

 I am trying to use the below query but gets error message as " The requested URL was not found on this server."



Can anyone please let me know what is wrong with the query.

0 votes



One answer

Permanent link

 I would assume that the requested URL was not found on this server. This usually means that the URL is invalid. That can have various reasons.

Since the question is of such a low quality, avoiding to provide any useful information, there is no way to tell. How has the URL being obtained? This would usually be done in a discovery process. Which method was used? Headers sent? Consider 
How should I ask a question in the Forum if I want to receive useful answers? if you want to post here.

One detail I find suspicious is the context root /jazz/ this context root is usually only used by very old EWM servers, or during server extension development. 

0 votes

Comments

The base URL was fetched with the help of the below link


Instead of  https://localhost:9443" string i have replaced my server url
As suggested in the above link I had used below headers
Accept - application/rdf+xml
OSLC-Core-Version - 2.0

Yea, as I thought the error message is absolutely correct. Instead of trying to skip all information start at the beginning, especially https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20#Discovery_Mechanism . The boldface data (at least) is specific to the system where the example was run. 

jazz/oslc/contexts/_ri93IEr1EemmCoWcAS2Uqw/workitems 

You have to discover the OSLC Query URI for your system using the discovery through the rootservices, the service provider and the query capability.
 

See a walkthrough of discovery to find query capabilities here: https://jazz.net/forum/answer_link/266667/


Basically, the only URL you ever need to hardcode is the rootservices - after that use discovery, query etc. to find urls. Using hardcoded URLs is fragile across versions.

Use rootservices to discover the OSLC Service Provider Catalog of interest.
Use OSLC discovery to find the query capability - see https://docs.oasis-open-projects.org/oslc-op/core/v3.0/os/discovery.html

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
× 7,499
× 1,329

Question asked: Jul 24 '23, 3:08 a.m.

Question was seen: 643 times

Last updated: Jul 24 '23, 9:29 a.m.

Confirmation Cancel Confirm