RRC Batch importing
![](http://jazz.net/_images/myphoto/c82e54de68bf0d69f704a97a9de7772f.jpg)
Accepted answer
![](http://jazz.net/_images/myphoto/c82e54de68bf0d69f704a97a9de7772f.jpg)
The import function in the web UI 'Import requirements from within a text document' is not a public API.
So there is no formal documentation and no support if things don't work out as expected.
To interact programmatically, use the public and open REST service API: the Open Services for Lifecycle Collaboration: OSCL web site
To get started, check the the hands-on OSLC workshop with this article. Also note the Eclipse Lyo project to get you going.
So there is no formal documentation and no support if things don't work out as expected.
To interact programmatically, use the public and open REST service API: the Open Services for Lifecycle Collaboration: OSCL web site
To get started, check the the hands-on OSLC workshop with this article. Also note the Eclipse Lyo project to get you going.
Comments
![](http://jazz.net/_images/myphoto/c82e54de68bf0d69f704a97a9de7772f.jpg)
Thanks Bas - I tried the workshop using CLM 4.0.6 but I'm not able to retrieve the list of RM projects for instance. Please see the headers contents below. Do you know what's wrong?
>> Example03: Print out the content of the Service Providers catalog
- Root Services URI: https://<server>:9443/rm/rootservices
- Service Providers catalog XPath expression: /rdf:Description/oslc_rm:rmServiceProviders/@rdf:resource
- Service Provider title XPath expression: //oslc:ServiceProvider/dcterms:title
>> GET(1) https://<server>:9443/rm/rootservices
>> Response Headers:
- X-Powered-By: Servlet/3.0
- x-wily-info: Clear guid=AE2AAD1F0A8370150F56DE9CDD9A3703
- x-wily-servlet: Encrypt1 eKjr2dtguqhf01QzjJGZfjVjb5dXUY7/wfh3yik8kHD9eZCJqJ1n6Efs10Zm9rjdz1q9+Zt2Yv9w/gVeK5vj1RF0KWupvQsf90xU9/c6wOBVpthFz2x7rnUMqn8bovjuUv7XGT3ENlC+yz2YAik8djPih1kzg5534bV/KK+XPXOsWWaAOj+KNxO80vJSftzm
- X-RRS-servername: "0"
- OSLC-Core-Version: 2.0
- Content-Type: application/rdf+xml
- Expires: Mon, 20 Jul 2015 21:16:49 EDT
- Cache-Control: public
- Content-Language: en-US
- Transfer-Encoding: chunked
- Date: Tue, 21 Jul 2015 01:11:47 GMT
>> Response Headers:
- X-Powered-By: Servlet/3.0
- x-wily-info: Clear guid=AE2AAE050A8370150F56DE9C6CD1CF3B
Jul 20, 2015 9:11:49 PM org.apache.http.impl.client.DefaultRequestDirector handleResponse
WARNING: Authentication error: Unable to respond to any of these challenges: {oauth=WWW-Authenticate: OAuth realm=https://<server>:9443/jts/oauth-authorize}
- x-wily-servlet: Encrypt1 eKjr2dtguqhf01QzjJGZfjVjb5dXUY7/wfh3yik8kHD9eZCJqJ1n6Efs10Zm9rjdz1q9+Zt2Yv9w/gVeK5vj1RF0KWupvQsf90xU9/c6wOBVpthFz2x7rnUMqn8bovjuUv7XGT3ENlC+yz2YAik8djPih1kzg5534bV/KK+XPXOsWWaAOj+KNxO80vJSftzm
- Set-Cookie: jfs-oauth-access-token0=; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:00 GMT; Path=/rm; secure
- Set-Cookie: jfs-oauth-access_token-secret0=; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:00 GMT; Path=/rm; secure
- Set-Cookie: jfs-request-token-e7538ce41916499285c50f1923b0ba98="ooonz08tjCtsn4j1bl8smvvLPxsoA6cz65guQBH7Xk"; Version=1; Max-Age=600; Expires=Tue, 21-Jul-2015 01:21:49 GMT; Path=/rm; secure
- X-jazz-web-oauth-url: https://<server>:9443/jts/oauth-authorize?oauth_token=e7538ce41916499285c50f1923b0ba98
- WWW-Authenticate: OAuth realm=https://<server>:9443/jts/oauth-authorize
- Content-Type: text/html
- Content-Length: 352
- Content-Language: en-US
- Date: Tue, 21 Jul 2015 01:11:49 GMT
- Expires: Thu, 01 Dec 1994 16:00:00 GMT
- Cache-Control: no-cache="set-cookie, set-cookie2"
>> Response Headers:
- X-Powered-By: Servlet/3.0
- x-wily-info: Clear guid=AE2AAFFA0A837014A2BBB6A761485DE7
- x-wily-servlet: Encrypt1 eKjr2dtguqhf01QzjJGZfivJFQrTqgiFZ2v8WOPxmBZEsmymM4i4EVFh1Eb39/D64vrWFygrFEy7R8pYz7OkRaTWPEpxVQlzVvdx6lIO4YF4tGhHYp9r8Q5PpJFxLt1dTd/YKZ6DPDNYttc1DmOc6VYF+RCOdjWEX4WcFYX6WUYoxYoxwIrRqAG5a61qzbv1
- X-com-ibm-team-repository-web-auth-msg: authrequired
- Content-Language: en-US
- Content-Length: 0
- Date: Tue, 21 Jul 2015 01:11:49 GMT
>> Response Headers:
- X-Powered-By: Servlet/3.0
- Location: https://<server>:9443/jts/auth/authrequired
- Content-Language: en-US
- Content-Length: 0
- Set-Cookie: WASReqURL=https://:9443/jts/authenticated/identity?redirectPath=%252Fjts%252Foauth-authorize%253Foauth_token%253De7538ce41916499285c50f1923b0ba98; Path=/; HttpOnly
- Date: Tue, 21 Jul 2015 01:11:49 GMT
- Expires: Thu, 01 Dec 1994 16:00:00 GMT
- Cache-Control: no-cache="set-cookie, set-cookie2"
- X-Powered-By: Servlet/3.0
- Content-Language: en-US
- Content-Length: 0
- Set-Cookie: WASReqURL=""; Expires=Thu, 01-Dec-94 16:00:00 GMT; Path=/; HttpOnly
- Set-Cookie: LtpaToken2=SP6y+yvHHOnl4FYTeq77TL8xLjwfIj7/GXlzVZvEvc8fdR1CJ325TInWRcaiF3Dd/+5W4WQtrKDk14YR1EqHZCK4sX4HEhRuzHKJP7Gysp7SImGIrSaxZX0AX1KzVrz87jI6edGPM4KUVqhHQfg7WzEfqO3qTZAdIeW1oAPrY4nkC5lHYKbURRvyfjWJ4/oRHJq8JpE/cLjdHCWIBWm81UyMgeQoENK5dyVxBR844LLzZDHiS9q3Zs4VngaDUsWToqglA7KIiJtZAnQV0n3hBrmvFpZLEF+2PzsXdqokp11E0BEBc2jJkXrfdf5x0w7YXwPHRFa/oSkP5dy8Ow/YFVn9bqSwQOtDxWu/WqcauewknhnlqWSszlzHGoXd2oHbTvndDJGxAx370xoRjTdL90r4iBjZ1RMivgjJd/DMRlMdQmHyrFak/DUavcwpWevHxh5FEMkpGH/x4E97HKqF3yYqTfrT++xVy0JznPvzRAIBD6NQvatsrITFQx412dei0BvmmMBBwIK8MwE6eb04RZbT74nSvV743WAXUOW2O+aCi4SBGg+ZJfSM14QaZAw+didaFLp7X+b6U9l6RYOqF2jNCV+qDWOOZB96VF49GyLv0UjMZ7AqCTpIH0P9Ff2NT1aC7VNYr4SXEqa5xOJXZHAfygYKaNBAmsmnCvi72C84JKIx7PqZLwyZkhc9pp04KI8a1HgBCDQ/UURwiIrreI9RLFWXUxQxXncai/XyrOQ=; Path=/; Domain=.ops.tiaa-cref.org; HttpOnly
- Date: Tue, 21 Jul 2015 01:11:50 GMT
- Expires: Thu, 01 Dec 1994 16:00:00 GMT
- Cache-Control: no-cache="set-cookie, set-cookie2"
>> Response Headers:
- X-Powered-By: Servlet/3.0
- x-wily-info: Clear guid=AE2AB1F40A837014A2BBB6A74FB24C4A
- x-wily-servlet: Encrypt1 eKjr2dtguqhf01QzjJGZfivJFQrTqgiFZ2v8WOPxmBZEsmymM4i4EVFh1Eb39/D64vrWFygrFEy7R8pYz7OkRaTWPEpxVQlzVvdx6lIO4YF4tGhHYp9r8Q5PpJFxLt1dTd/YKZ6DPDNYttc1DmOc6VYF+RCOdjWEX4WcFYX6WUYoxYoxwIrRqAG5a61qzbv1
- Content-Language: en-US
- Content-Length: 0
- Set-Cookie: JSESSIONID=0000ovAvQM8_7omfF1CWRwfung-:-1; Path=/; HttpOnly
- Set-Cookie: X-com-ibm-team-foundation-auth-loop-avoidance=false
- Date: Tue, 21 Jul 2015 01:11:50 GMT
- Expires: Thu, 01 Dec 1994 16:00:00 GMT
- Cache-Control: no-cache="set-cookie, set-cookie2"
- X-Powered-By: Servlet/3.0
- Location: https://<server>:9443/jts/auth/authfailed
- Content-Language: en-US
- Content-Length: 0
>> Project Areas:
Thank you for your helkp
![](http://jazz.net/_images/myphoto/0227396f4efb17d0baa0c12dd70df878.jpg)
You've got an "authfailed" response for the last "POST". Double check your username and password. The sample code works for me.
![](http://jazz.net/_images/myphoto/c82e54de68bf0d69f704a97a9de7772f.jpg)
There is something strange going on, the User/name password are correct. I can run it via the FF RestClient add-on. Would you mind sharing your code when the server requires and authentication for me to compare?
Thanks!
![](http://jazz.net/_images/myphoto/c82e54de68bf0d69f704a97a9de7772f.jpg)
I got it - There was a mismatch with the apache lib.
Thanks