Tutorials & Demos of Cyberlink PowerDirector 11 Ultimate.
SHARE BY GK
Computer Knowledge
This imports the classes exposed by the .asmx page, and, allows you to call from the current session. My initial take failed to take advantage of the -Namespace and -Class parameters, so, I was fighting ugly, dynamic type names on top of everything. Hint: use these options.$webservice = New-WebServiceProxy -Uri https://www.super.com/secret/classes.asmx -Namespace WillsWorld -Class IGotClass
Chris Duck, fellow DFW-ite, gave me this alternative which is more to the point and accurate:$webservice |gm -membertype method |select definition |% {($_ -replace "@|{|}|Definition=",) -split |(|)} |where {$_ -match WillsWorld} |select -Unique |sort
$webservice.GetType().Assembly.GetExportedTypes()
Put the internet to work for you.
Turn off or edit this Recipe
|
Recommended for you |
function Get-TypeAccelerators {
[PSObject].Assembly.GetType(System.Management.Automation.TypeAccelerators)::Get.GetEnumerator() | sort key | select key
}
This is totally a place holder so I can remember it later. Not pretending I came up with it... Copyright © 2011 Information Blog
Powered by Blogger