guides:web_service_toolbox_project
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
guides:web_service_toolbox_project [2020/08/24 16:17] – created brett.zamora | guides:web_service_toolbox_project [2020/08/25 01:32] (current) – brett.zamora | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== CeRTNA Sample Web Service Toolbox Project ===== | ===== CeRTNA Sample Web Service Toolbox Project ===== | ||
- | CeRTNA has uploaded a sample Visual Studio 2015 C# project that provides a high-level demonstration of how to call the CeRTNA web services. | + | CeRTNA has uploaded a sample Visual Studio 2015 C# project |
**Disclaimer: | **Disclaimer: | ||
Line 7: | Line 7: | ||
The application demonstrates functions like: | The application demonstrates functions like: | ||
- | * Obtaining the value of a Base64 document string from an XML file. | ||
- | * Calculating a SHA384 Hash and converting the hash to a Base64 string. | ||
* Logging in to obtain a soft-token for use with the various web services. | * Logging in to obtain a soft-token for use with the various web services. | ||
- | * Calling StoreChecksum web service to store a checksum value. | + | * Obtaining |
- | * Calling the ValidateChecksum web service | + | * Locking, unlocking, and deleting a payload from a remote folder (repository). |
+ | * Sending/ | ||
+ | * Getting | ||
- | The project can be downloaded by clicking this link: ({{guides:checksumtool.zip|Checksum Tool}}) | + | The project can be downloaded by clicking this link: ({{guides:web_service_toolbox.zip|Web Service Toolbox}}) |
- | The ChecksumTool | + | The Web ServiceToolbox |
* Newtonsoft.Json | * Newtonsoft.Json | ||
Line 28: | Line 28: | ||
- | {{ : | + | {{ : |
+ | **Note:** For all of the functions described below, your web service userid and password are required. | ||
- | To use the tool, the typical order of steps would be: | ||
- | {{tablelayout? | + | ==== Folder Item Details Description ==== |
- | ^ Step ^ Comment ^ | + | |
- | | Enter User Name & PW | These are special web service user accounts provided to you by CeRTNA. | | + | |
- | | Select/Load an XML file | You can use a REQUEST or RESPONSE file. | | + | |
- | | Enter a Doc Seq# | This identies which Doc Seq# contained in the XML file that you wish to work with. | | + | |
- | | Click the Calculate button | The SHA3 checksum is calculated and displayed in the Base64 Document Checksum field. | | + | |
- | | Click the Store button | The calculated checksum is stored in the CeRTNA Portal and a Checksum Key is returned and displayed in the Base64 Document Checksum Key field. | | + | |
- | | Click the Validate button | The ChecksumKey and Checksum values displayed on the form are used to validate the locally calculated checksum value against the stored value in the database. | | + | |
- | | Click the Reset button | This clears the form fields. | | + | |
+ | To view a list of payloads in a remote folder (repository), | ||
- | **Note:** The Checksum Value field is unprotected so that you can modify the checksum value manually to test the negative result of the ValidateChecksum flow. | ||
+ | {{ : | ||
- | There are plenty | + | |
+ | A list of the payloads contained in the selected folder/ | ||
+ | |||
+ | |||
+ | {{ : | ||
+ | |||
+ | The Folder Item Details function demonstrates the use of the [[guides: | ||
+ | |||
+ | |||
+ | ==== Send/ | ||
+ | |||
+ | To Send/ | ||
+ | |||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | Click the Browse button to browse | ||
+ | |||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | Click the Send button to initiate the upload of all the payloads in the referenced Local Folder to the remote folder/ | ||
+ | |||
+ | Click the Retrieve button to initiate the download of all the payloads in selected remote folder/ | ||
+ | |||
+ | |||
+ | The Send/ | ||
+ | |||
+ | {{tablelayout? | ||
+ | ^ Web Service: | ||
+ | | [[guides: | ||
+ | | [[guides: | ||
+ | | [[guides: | ||
+ | | [[guides: | ||
+ | |||
+ | |||
+ | ==== Lock/Unlock Description ==== | ||
+ | |||
+ | To exercise the Lock/Unlock web services, click the Lock/Unlock radio button and then select a repository name from the dropdown list as shown below: | ||
+ | |||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | After selecting | ||
+ | |||
+ | Select a file from the dropdown list: | ||
+ | |||
+ | {{ :guides: | ||
+ | |||
+ | |||
+ | Once a payload name is selected, you can experiment with the Lock, Unlock, and Delete web services by clicking the approprate button. | ||
+ | |||
+ | |||
+ | ==== Check Status Description ==== | ||
+ | |||
+ | To exercise the Transaction web service... | ||
+ | |||
+ | |||
+ | * Click the Check Status radio button. | ||
+ | * Enter a Submitter ID. | ||
+ | * Enter a Primary Reference value. | ||
+ | * Click the Transaction History checkbox (Optional) | ||
+ | * Click the Get Status button | ||
+ | |||
+ | |||
+ | As shown below, the UI will be populated with the details of the transaction details and optionally the transaction history for the Submitter ID/Primary Reference combination that you entered. | ||
+ | |||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | **Important Note:** You can only check the status of a transaction that is associated with the organization that your web service user is associated with. | ||
+ | |||
+ | You can review the [[guides: | ||
guides/web_service_toolbox_project.1598285833.txt.gz · Last modified: by brett.zamora