Hello, I am totally new in ST2.
I have python code getting data from RISSservice (see below). I want create action in ST2, which will do
the same as this code. So I need this code in action and run it from ST2.
How can I do it?
Code:
from suds.client import Client
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
url = 'file:///home/ukfadmin/RISSservice.wsdl'
client = Client(url,
location='myLocation',
username='username',
password='password')
stateInfo = None
criteria = client.factory.create('CmSelectionCriteria')
item = client.factory.create('SelectItem')
criteria.MaxReturnedDevices = 500
criteria.DeviceClass = 'Phone'
criteria.Status = 'Registered'
criteria.SelectBy = 'Name'
result = client.service.selectCmDevice(stateInfo, criteria)
print result