OSLC service catalog and RTC
I am following this article: http://jazz.net/library/article/352#service_discovery
When I try to get the service catalog of my RTC installation, using the following URI,
https://localhost:9443/ccm/oslc-scm/catalog
I get the following:
<oslc_disc:ServiceProviderCatalog rdf:about="https://localhost:9443/ccm/oslc-scm/catalog.xml">
<oslc_disc:entry>
<oslc_disc:ServiceProvider>
<dcterms:title>Prelude</dcterms:title>
<oslc_disc:details rdf:resource="https://localhost:9443/ccm/process/project-areas/_CTK3MEu0EeCdO6nU-gy_UQ"/>
<oslc_disc:services rdf:resource="http://example.com/cmm/oslc-scm2/services.xml"/>
<jp:consumerRegistry rdf:resource="https://localhost:9443/ccm/process/project-areas/_CTK3MEu0EeCdO6nU-gy_UQ/links"/>
</oslc_disc:ServiceProvider>
</oslc_disc:entry>
</oslc_disc:ServiceProviderCatalog>
Why am I getting
<oslc_disc:services> link as "http://example.com/cmm/oslc-scm2/services.xml" ?
when I should be getting something like the following:
https://localhost:9443/ccm/workitems/services.xml
Why and how is this example.com turning up in this?
When I try to get the service catalog of my RTC installation, using the following URI,
https://localhost:9443/ccm/oslc-scm/catalog
I get the following:
<oslc_disc:ServiceProviderCatalog rdf:about="https://localhost:9443/ccm/oslc-scm/catalog.xml">
<oslc_disc:entry>
<oslc_disc:ServiceProvider>
<dcterms:title>Prelude</dcterms:title>
<oslc_disc:details rdf:resource="https://localhost:9443/ccm/process/project-areas/_CTK3MEu0EeCdO6nU-gy_UQ"/>
<oslc_disc:services rdf:resource="http://example.com/cmm/oslc-scm2/services.xml"/>
<jp:consumerRegistry rdf:resource="https://localhost:9443/ccm/process/project-areas/_CTK3MEu0EeCdO6nU-gy_UQ/links"/>
</oslc_disc:ServiceProvider>
</oslc_disc:entry>
</oslc_disc:ServiceProviderCatalog>
Why am I getting
<oslc_disc:services> link as "http://example.com/cmm/oslc-scm2/services.xml" ?
when I should be getting something like the following:
https://localhost:9443/ccm/workitems/services.xml
Why and how is this example.com turning up in this?
3 answers
Why am I getting
<oslc_disc> link as "http://example.com/cmm/oslc-scm2/services.xml" ?
when I should be getting something like the following:
https://localhost:9443/ccm/workitems/services.xml
Why and how is this example.com turning up in this?
This is a known issue with the oslc-scm entry, see Defect 150073: OSLC SCM catalog entry has wrong URL for oslc_disc:servicesOSLC SCM catalog entry has wrong URL for oslc_disc:services
Why am I getting
<oslc_disc> link as "http://example.com/cmm/oslc-scm2/services.xml" ?
when I should be getting something like the following:
https://localhost:9443/ccm/workitems/services.xml
Why and how is this example.com turning up in this?
This is a known issue with the oslc-scm entry, see Defect 150073: OSLC SCM catalog entry has wrong URL for oslc_disc:servicesOSLC SCM catalog entry has wrong URL for oslc_disc:services
Is there any other way of doing a service discovery to query on my RTC work items?
You're using the OSLC-SCM catalog. You want the OSLC-CM one for work items.
For example:
https://jazz.net/jazz/rootservices
->
You want the first one.
https://jazz.net/jazz/oslc/workitems/catalog
->
For example:
https://jazz.net/jazz/rootservices
->
...
<oslc_cm:cmServiceProviders rdf:resource="https://jazz.net/jazz/oslc/workitems/catalog"/>
<oslc_scm:scmServiceProviders rdf:resource="https://jazz.net/jazz/oslc-scm/catalog"/>
...
You want the first one.
https://jazz.net/jazz/oslc/workitems/catalog
->
<oslc_disc:entry>
<oslc_disc:ServiceProvider>
<dc:title>Rational Team Concert</dc:title>
<oslc_disc:details rdf:resource="https://jazz.net/jazz/process/project-areas/_1w8aQEmJEduIY7C8B09Hyw"/>
<oslc_disc:services rdf:resource="https://jazz.net/jazz/oslc/contexts/_1w8aQEmJEduIY7C8B09Hyw/workitems/services.xml"/>
<jp:consumerRegistry rdf:resource="https://jazz.net/jazz/process/project-areas/_1w8aQEmJEduIY7C8B09Hyw/links"/>
</oslc_disc:ServiceProvider>
</oslc_disc:entry>