It's all about the answers!

Ask a question

RRC Schema and API


bala subramanian vetrivel (11) | asked Nov 13 '09, 11:18 a.m.
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



permanent link
Vishy Ramaswamy (1111) | answered Nov 18 '09, 4:31 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
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

permanent link
Roberta Carroll (1111) | answered Dec 22 '09, 3:58 p.m.
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?

permanent link
Daniel Moul (4.9k1318) | answered Dec 23 '09, 10:55 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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

permanent link
Tom Wilger (6) | answered Jan 03 '10, 4:18 p.m.
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

permanent link
Eric Yokeley (41) | answered Jan 06 '10, 3:58 p.m.

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.

Hi Tom - do you have more information about the error you are getting?

Thanks,

Eric

permanent link
Roberta Carroll (1111) | answered Jan 27 '10, 7:40 p.m.
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();
}

permanent link
RajeshBabu V (4612) | answered May 28 '10, 3:02 a.m.
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?

permanent link
Ravi Kaushal (21) | answered Feb 01 '12, 5:32 a.m.
Hi, please guide me on "how to access the projects and requirements created in RRC repository/database programatically using C#".
It is urgent .

permanent link
Ravi Kaushal (21) | answered Feb 01 '12, 5:34 a.m.
If possible kindly give a sample code to access the projects and requirements stored in RRC repository programmatically through C#.
It is urgent.

Your answer


Register or 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.