Accessing web services from Ignition

I have a project where I need to retrieve data using web services. Is there any tutorial/sample code available on how to configure Ignition to call web services?
Thanks … /ignition/
There is a new section on web services. Also they are not all the same.
A service that uses true wsdl dialog is different than an xml server

Also check out

This is the native libraries in ignition

Here are direct links to the sections in the user manual: … uments.htm … uments.htm … esults.htm

Also, the link that @tailfire posted to the SUDS documentation is very helpful.

Thanks for the info
The webservice that I would like to interface with from Ignition uses REST/JSon. I am not too familar with this. I would like to know if we can use Ignition to retrieve data from these type of web services.

The JSON library for python is external, which mean that for now it can’t be used from within Ignition. You’ll be able to get the JSON response back from the server’s RESTful API, but you won’t really be able to do anything useful with it.

Ignition now has built-in JSON parsing functions that convert JSON into Python data structures or parse Python data structures to JSON.


You can use and to use RESTful web services.

yes is it can use REST/JSON we are doing it this way as of now

I also need to use webservices. I see is Webservices module in python but I was unable to find any documentation on how to use it.
Thanks for your help

Since 2013, things have improved a lot in the core Ignition product. For all REST (and, really, most HTTP related calls) I’d recommend

1 Like

Thanks. I tried a simple script on sript console and I am getting error
url= ‘http://myurl
client =
response =, params = {“DeviceId”: “WPISC2001”,“CardId”: “”})

Traceback (most recent call last):
File “”, line 2, in
AttributeError: ‘com.inductiveautomation.ignition.designer.gui.tool’ object has no attribute ‘httpClient’

What version of Ignition are you using?

I am using 7.9.12
Thanks wasn’t available until something like 8.0.6.

You’ll have to stick to and

If I use is get error code 500 from server. I tried postman and SOAP to confirm the hearder and te url endpoint are working fine. Here is te script I am testing on script console
url= “my url”
devi =“WPISC2001”
card = “”
header = {“DeviceId”:devi,“CardId”:card}

response =,‘application/json; charset=utf-8’, headerValues=header)

File “”, line 7, in
IOError: Server returned HTTP response code: 500 for URL: “my url”

You’re sending DeviceId and CardId as header values, not the actual data payload - is that intentional? If so, it’s one of the weirdest web APIs I’ve ever heard of. I would expect you to have to do something like this:

url= 'my url'
devi = 'WPISC2001'
card = ''
payload = {'DeviceId': devi, 'CardId': card}

response =, contentType='application/json; charset=utf-8', postData=system.util.jsonEncode(payload))

Or, better, with httpClient:

url= 'my url'
devi = 'WPISC2001'
card = ''
payload = {'DeviceId': devi, 'CardId': card}

response =, payload)

Which will automatically encode the payload as JSON and set the content-type header for you.

Thanks a lot PGriffith and everyone. No it was not intentional I made a mistake. I tried your way and it is working now.
Really appreciate your help


1 Like