Working Example using AJAX

7 years 8 months ago - 7 years 8 months ago #41 by luispemu
Working Example using AJAX was created by luispemu
The attached file is an example of the needed sequence of connections to retrieve the quality data of a single requirement using the RAT Web Service.

Steps:
  1. Visit 163.117.147.95/ratapi.asmx and add a security exception to your browser, because this example target endpoint is using a self-signed certificate to provide SSL.
  2. Decompress the attached file.
  3. Open the ".html" file on your browser and automatically in a few seconds it connects to the service and displays the XML retrieved from the Web Service.
If you have any doubt about this example please register at the forum and ask using this topic.

Best Regards,
Luis Antonio Pérez Mulero

This attachment is hidden for guests.
Please log in or register to see it.

This message has an attachment file.
Please log in or register to see it.

Last edit: 7 years 8 months ago by luispemu.

Please Log in or Create an account to join the conversation.

  • luispemu
  • Topic Author
7 years 8 months ago #58 by prashant.jain
Replied by prashant.jain on topic Working Example using AJAX
Hi

Could you please let us know where to find parameter values for various APIs e.g. InitProject API requires
DatabaseType rms,
string rmsLogin,
string databaseServer,
string databaseName,
string projectLocation,
string projectName,
string projectCode

Here, what would be DatabaseType, server, database name etc.

Please Log in or Create an account to join the conversation.

  • prashant.jain
7 years 8 months ago #59 by luispemu
Replied by luispemu on topic Working Example using AJAX
Hi everyone!

At this particular case you have the method and parameters definition at this site: 163.117.147.95/site/html/M_Rqa_Authoring...tAPI_InitProject.htm

  • DataBaseType expects an integer from the following list that indicates the requirements repository you are using
  • databaseServer expects the url or IP where the requirements repository is located.
  • databaseName expects the name of the database to connect to.
  • projectLocation the path in the database to reach the project, it depends of your internal database structure.
  • projectName is the name you give to the project.
  • projectCode expects the unique ID you gave to the project in the database.

All this information is also explained at the site I attached before, except the DataBaseType that i attach here:
  • Access = 0
  • SqlServer = 1
  • Oracle = 2
  • MySQL = 3
  • DOORS = 4
  • Excel = 5
  • NATIVE = 6
  • OSLC = 7
  • Reqtify = 8
  • Integrity = 9
  • OSLCKM = 10

Also for other API calls you can look at 163.117.147.95/site/html/Methods_T_Rqa_A...ibrary_WS_RatAPI.htm and to the entry for each method.

Hope it helps, Best Regards

Please Log in or Create an account to join the conversation.

  • luispemu
  • Topic Author