on ā2019 Feb 01 10:01 AM
Hello,
I'm using thefollowing script to get the process list of an instance.
$proxy = New-WebServiceProxy -uri http://myserver.domain.de:50113?wsdl
$proxy.GetProcessList()<br>
Is the instance a hana database the return value is correct. But is the instance an ABAP/ASCS/JAVA/ASCS instance there is no return value.
Cannot find an overload for "GetProcessList" and the argument count: "0".
At line:2 char:1
+ $proxy.GetProcessList()
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodCountCouldNotFindBest<br>
I'm able to reqest the methods and GetProcessList is available.
Are there any restriction outside of an HANA enviroment?
br Patrick
Request clarification before answering.
Hello Patrick,
Kernel 753, ok.
Try the following:
$proxy = New-WebServiceProxy -uri http://myserver.domain.de:50113?wsdl
$proxy.Credentials = new-object System.Net.NetworkCredential("SIDadm","password")
$type = $proxy.GetType().NameSpace
$proclist = New-Object ($type + ".GetProcessList")
$proxy.GetProcessList($proclist)Regards,
IsaĆas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Patrick,
That's it. It worked.
If you need a more detailed output (e.g., showing the statuses), then use:
$proclist = New-Object ($type + ".GetProcessList")
$list = $proxy.GetProcessList($proclist)
$list.process | Format-TableRegards,
IsaĆas
| User | Count |
|---|---|
| 12 | |
| 9 | |
| 7 | |
| 5 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.