SOAP Action getResourceTypes

The getResourceTypes action returns a list of all resource types currently available in dkCOIN. The request requires no input. The response includes the following information about the source.

getResourceTypes Result Fields
name Name of the resource type
Display Name Display formated name of the resource type, with proper casing and/or punctuation.

For more detailed information you can find the action in the WSDL and the dkcoin.xsd Below are code samples you can view in PHP, C#, Java, or All

PHP Source Code

$targetServer = '';

// Create SoapClient 
$soapClient = new SoapClient("http://{$targetServer}/service/wsdl",
                array('cache_wsdl' => WSDL_CACHE_NONE,
                      'compression' => SOAP_COMPRESSION_ACCEPT |
                                       SOAP_COMPRESSION_GZIP |

try {
    $result = $soapClient->getResourceTypes();
} catch (SoapFault $e) {
    print("\startSession Error: ". $e->getMessage()."\n". $e->getTraceAsString() . "\n");

The SOAP request will look similar to the following.

The SOAP response will look similar to the following.

If an error occurs a SOAP Fault should be generated and returned to you. The fault will likely throw a similar error that you can catch. Most errors should be handled gracefully but will result in a PHP error dump being returned as the SOAP Fault message. Currently all errors are of code 'Sender'. The actor, detail, name, and header values of the error are currently set as their field names until we decide what to populate in those values.