Created
November 12, 2014 21:09
-
-
Save trondhindenes/2687f9a251cb1279f9de to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
workflow testwf | |
{ | |
$result = Invoke-restmethod -Uri "http://opendatasalutedata.cloudapp.net/v1/datacatalog/" | |
$out = $result.service.workspace.collection | |
$out | |
} | |
function testfunc | |
{ | |
$result = Invoke-restmethod -Uri "http://opendatasalutedata.cloudapp.net/v1/datacatalog/" | |
$out = $result.service.workspace.collection | |
$out | |
} | |
$out1 = testwf | |
$out2 = testfunc | |
#Get the type of the workflow's output (generic object) | |
Write-Output "Workflow output:" | |
$out1[0].GetType() | |
#Get the type of the function's output (xml) | |
Write-Output "Function output:" | |
$out2[0].GetType() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment