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

Unable to initialize JazzRootServicesHelper class with webContextUrl for QM and OSLC constants from OSLC4Net

 I am trying get the service provider catalog from QM root services with the help of JazzRootServicesHelper class from OSLC4Net library.

When I tried to initialize the JazzRootServicesHelper with below code:
//Step 1
JazzRootServicesHelper helper = new JazzRootServicesHelper(webContextUrl, OSLCConstants.OSLC_QM_V2);

//STEP 2: Create a new Form Auth client with the supplied user/password
JazzFormAuthClient client = helper.InitFormClient(user, passwd);

//STEP 3: Login in to Jazz Server
if (client.FormLogin() == HttpStatusCode.OK)
{
Console.WriteLine("Jazz client login sucessfully ");
//STEP 4: Get the URL of the OSLC QualityManagement catalog
String catalogUrl = helper.GetCatalogUrl();

//STEP 5: Find the OSLC Service Provider for the project area we want to work with
String serviceProviderUrl = client.LookupServiceProviderUrl(catalogUrl, projectArea);

//STEP 6: Get the Query Capabilities URL so that we can run some OSLC queries
String queryCapability = client.LookupQueryCapability(serviceProviderUrl,
  OSLCConstants.OSLC_QM_V2,
  OSLCConstants.QM_TEST_RESULT_QUERY);


}

At Step 1  below Exception occur :

Message = "OSLCC003: An error occurred processing the root services document.  Server location: https://servername:9443/qm/rootservice."

InnerException = {"[Line 1 Column 2] Cannot resolve the QName ':html' in the Default Namespace since the namespace is not defined.  Did you to forget to define a namespace for the : prefix?\r\n"}


0 votes



One answer

Permanent link

The root services document is usually named rootservices not rootservice.
Check that you can do a GET on the URI using a browser plugin such as Poster, RESTed etc.

You might also want to post your question on OSLC Forum for OSLC4NET since OSLC4NET is OSLC Open Project code and not Jazz code.

1 vote

Comments
Thanks for the information.

 

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,950

Question asked: Feb 18 '21, 4:07 a.m.

Question was seen: 1,660 times

Last updated: Feb 18 '21, 10:36 p.m.

Confirmation Cancel Confirm