cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

sapcontrol from powershell returns no return value for ABAP/JAVA instance

Former Member
0 Likes
3,520

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

View Entire Topic
Former Member
0 Likes

isaias.freitas

Thank you for this Info, it was very helpful. I actually like this format much better as it allows you to know which parameters are availible

For instance.

$proxy.StopSystem("SAPControlALLINSTANCES","*","0","15")

Is now (other values already defaulted)

$StopSystem = New-Object ($type + ".StopSystem")

$StopSystem.waittimeout = 15

$proxy.StopSystem($StopSystem)

Isaias_SAP
Product and Topic Expert
Product and Topic Expert
0 Likes

You are welcome! 🙂