Changes between Version 1 and Version 2 of UniformClearinghouseApiTestingCurl


Ignore:
Timestamp:
02/17/14 10:40:19 (10 years ago)
Author:
tmitchel@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UniformClearinghouseApiTestingCurl

    v1 v2  
    11Developers 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.
    22
     3= Calling get_version =
    34 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.
    45 1. Go to the [https://portal.geni.net/secure/profile.php profile page], select the "SSL" tab, and either create or download your certificate.
     
    2526curl -H "Content-type: text/xml" --data @get_version.xml https://ch.geni.net:8444/SR
    2627}}}
    27 -----
     28= Responses =
     29Responses 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
    2834Here is the response from the Service Registry to the get_version call after [http://xmlprettyprint.com/ pretty printing]:
    2935{{{