RRC Schema and API
I want to programmatically create Requirements using code. Is there any API to do that?
Or at least can I all schema related RRC. |
9 answers
Hi Bala,
We are providing some samples for accessing the data on jazz.net next week. This will allow you to access the data and add new data. However the xsds associated with our requirement and other resources are not public API at this time. Having said this we are looking at providing as API in the future. It would also help us to understand use cases around your integration. Can you please share your use cases.? You can also create requirements using our OSLC RM API. http://open-services.net/bin/view/Main/RmRestApi?sortcol=table;up=#Requirement_Factory Thanks Vishy |
Do you have any APIs that will allow me to upload over 4,000 business terms into the Composer tool? Or at least, do you know how I can upload the terms directly into the database?
|
Do you have any APIs that will allow me to upload over 4,000 business terms into the Composer tool? Or at least, do you know how I can upload the terms directly into the database? Sample code is now available here: https://jazz.net/downloads/rational-requirements-composer/releases/2.0?p=allDownloads |
Daniel
This is exactly what I've been looking for. Thank you very much. However, I seem to be having a problem when I run the RequirementExample, or any of the tests. I'm getting a Connection Refused, when I try to connect to the server. I've changed the repository.url, repository.userId, repository.password, and project.name to match the userid, password, and project I created in jazz and am using with RCS version 2.0.0 The user I created has administrator privileges and is set up as an RRC author and RRC Review. I am able to login as the user through the RRC web client and the eclipse client. Is there anything else I need to configure? Thanks Tom |
Hi Tom - do you have more information about the error you are getting? Thanks, Eric |
Do you have any APIs that will allow me to upload over 4,000 business terms into the Composer tool? Or at least, do you know how I can upload the terms directly into the database? Sample code is now available here: https://jazz.net/downloads/rational-requirements-composer/releases/2.0?p=allDownloads After retrieving over 4,000 terms, then I will get the following messages: INFO (HttpMethodDirector.java:438) - I/O exception (java.net.SocketException) caught when processing request: No buffer space available (maximum connections reached?): NET_Bind INFO (HttpMethodDirector.java:444) - Retrying request INFO (HttpMethodDirector.java:438) - I/O exception (java.net.SocketException) caught when processing request: No buffer space available (maximum connections reached?): NET_Bind INFO (HttpMethodDirector.java:444) - Retrying request INFO (HttpMethodDirector.java:438) - I/O exception (java.net.SocketException) caught when processing request: No buffer space available (maximum connections reached?): NET_Bind INFO (HttpMethodDirector.java:444) - Retrying request java.net.SocketException: No buffer space available (maximum connections reached?): NET_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:398) at java.net.Socket.bind(Socket.java:587) at com.ibm.jsse2.ic.bind(ic.java:8) at com.ibm.jsse2.jc.<init>(jc.java:167) at com.ibm.jsse2.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:13) at com.ibm.rdm.client.secure.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:58) at com.ibm.rdm.client.secure.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:76) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) at com.ibm.rdm.client.api.RRCRestClient.executeHttpMethod(RRCRestClient.java:279) at com.ibm.rdm.client.api.RRCRestClient.performGet(RRCRestClient.java:145) at com.ibm.rdm.client.api.BaseResourceServiceClient.getResource(BaseResourceServiceClient.java:35) at com.ibm.rdm.sample.internal.repository.client.RestClient.get(RestClient.java:97) at com.ibm.rdm.sample.service.BaseService.validate(BaseService.java:84) at com.ibm.rdm.sample.service.RetrieveArtifactService.validate(RetrieveArtifactService.java:43) at com.ibm.rdm.sample.service.BaseService.execute(BaseService.java:64) at com.ibm.rdm.sample.tests.BuildComposerTermsFromEADI.updateNativeArtifact(BuildComposerTermsFromEADI.java:435) How do I re-use the socket connection? How do I close an existing socket connection? See code below.... RetrieveArtifactService retrieveSvc1 = new RetrieveArtifactService(); retrieveSvc1.setArtifactUri(rrcURL); retrieveSvc1.setServerInfo(reproURL, userId, password); try { retrieveSvc1.execute(); } catch (BaseServiceException e) { e.printStackTrace(); } |
Hello
I referred the same sample code to get a requirement,create and delete a particular requirement.However,I am getting an exception of malformed url exception while setting the mimetype as creationService.setMimeType("application/x-com.ibm.rdm.requirement+xml"); and creationService.setServerInfo(repositoryURL, userId, password); and later on get a null pointer exception on the same. I didnot got any exception while i debug the code for 2,3 times but later on when i debug more i faced this exception. Is there any problem with release or some finalizing the objects or so? |
Hi, please guide me on "how to access the projects and requirements created in RRC repository/database programatically using C#".
|
If possible kindly give a sample code to access the projects and requirements stored in RRC repository programmatically through C#.
|
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.