Missing root services.
Hi,
I am trying to use Resource Oriented API version 2.0 (https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2). Two feautures I need are 1) to retrieve list of work items from RTC server, 2) to create work item. But In my root services I have no services mentioned in documentation: - oslc_cm:simpleQuery - oslc_cm:factory However I can create comment using OSLC like this: curl -D - $opts -H \"Content-Type: application/x-oslc-cm-change-request+json\" -H \"Accept: text/json\" -X POST -d \"{\\\"dc:description\\\":\\\"My new comment 4th edition\\\"}\" $host/oslc/workitems/$workItemNumber/rtc_cm:comments my root services are: <?xml version="1.0"?> How can I reach my goals? edit: My software versions are: Jazz Foundation - Jazz Team Server version: 1.0.0.2 iFix 3 build: I20100602-1000 Rational Team Concert version: 2.0.0.2 iFix 3 build: I20100602-1000 |
3 answers
You need to grab this URl from oslc_cm:cmServiceProviders and it will lead you to the ServiceProviderCatalog resource, which can then get the ServiceProvider element, which has a URI to fetch it. From there, you'll find it.
This article should be helpful in explaining how to traverse the service discovery chain of documents http://jazz.net/library/article/352 |
I am writing an application, using the api documented in the referenced document. I am using the non-ssl urls, as my server rejects self signed certificates, with no workaround available.
I successfully get the serviceprovider entry from the root services document. but when I request that document (open that url) via my program, I get a 302 'moved' response, to an authorization service. when I do this in the browser I am requested to logon with my jazz userid/pw... but I my application is not a browser. I supplied the basic auth credential header on the request for the catalog (service provider link), but I only get back the authentication request.. get , http://xx.xx.xx.xx:9080/jazz/oslc/workitems/catalog response, 302 http://xx.xx.xx.x:9080/jazz/authenticated/identity?redirectPath=%2Fjazz%2Foslc%2Fworkitems%2Fcatalog that document returns the html & javascript to invoke the logon panel. ... <body class="tundra"> <noscript><div id="net-jazz-ajax-NoScriptMessage">Javascript is either disabled or not available in your Browser</div></noscript> <div id="net-jazz-ajax-InitialLoadMessage">Loading...</div> <div id="net-jazz-ajax-WorkbenchRoot"></div> what did I miss? the document at https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2#Discovery also does not document any requirement to 'login' as part of the discovery sequence. thanks Sam |
here is the net answer. strategy for either kind of logon
https://jazz.net/wiki/bin/view/Main/WritingAJazzClient Sam |
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.