Changes between Version 1 and Version 2 of UniformClearinghouseApiTestingCurl
- Timestamp:
- 02/17/14 10:40:19 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UniformClearinghouseApiTestingCurl
v1 v2 1 1 Developers interested in testing the Uniform Clearinghouse APIs at the GPO Clearinghouse can do so using [http://curl.haxx.se/ curl], a command line tool that acts as an HTTP client. The Clearinghouse APIs use [http://xmlrpc.scripting.com/default.html XML-RPC] over HTTPS. It is straightforward to make XML-RPC calls using your GPO Clearinghouse experimenter certificate. 2 2 3 = Calling get_version = 3 4 1. Use the [https://portal.geni.net GPO Portal] to access your experimenter certificate. If you don't already have an account on the GPO Clearinghouse, follow the instructions to access the portal or request an account. 4 5 1. Go to the [https://portal.geni.net/secure/profile.php profile page], select the "SSL" tab, and either create or download your certificate. … … 25 26 curl -H "Content-type: text/xml" --data @get_version.xml https://ch.geni.net:8444/SR 26 27 }}} 27 ----- 28 = Responses = 29 Responses from the [wiki:UniformClearinghouseAPIV2 Uniform Clearinghouse API] always have three values: `code`, `value`, and `output`. 30 * '''code''' is an integer that indicates the status of the invocation. Zero means success. Any other value is an error code. 31 * '''value''' holds the actual data of the return if '''code''' is zero. 32 * '''output''' holds a user readable error message if '''code''' is non-zero. 33 28 34 Here is the response from the Service Registry to the get_version call after [http://xmlprettyprint.com/ pretty printing]: 29 35 {{{