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,523

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
Isaias_SAP
Product and Topic Expert
Product and Topic Expert
0 Likes

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

Former Member
0 Likes

Hello IsaĆ­as,

that's the return value:

process                           
-------                           
{disp+work, igswd_mt, gwrd, icman}
Isaias_SAP
Product and Topic Expert
Product and Topic Expert

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-Table

Regards,

IsaĆ­as