Download 3 Overview - Inductive Automation
Transcript
Scripting
444
This example is extremely simple and rather straight forward. The main steps to remember when
attempting to use the SUDS library in scripting are as follows:
1. Import the SUDS Client object
from suds.client import Client
2. Instantiate a new Client object
client = Client("url_to_your_wsdl")
3. Call the desired method using the service instance variable
client.service.MyMethod(myArgument)
6.2.4.2
Complex Arguments
In the overview example the methods provided by the web service were very simple and took simple
argument types. Sometimes however the web service will describe complex types and allow you create
instances of these types that can then be added to the system/machine that the web service is providing
an interface for.
A simple, hypothetical example of this would be a system that stores contact information of clients and
can be used as an address book of sorts by other systems on the network. It may provide not only a
way to pull contact information for a certain individual out but also a way to insert new contacts. We'll
keep the example simple and say that contacts have only a name and a phone number.
This example is completely hypothetical. It is intended to give insight into complex types. It
does not make use of an an actual functional web service. A very similar example can be
found in the SUDS documentation.
© 2013 Inductive Automation
Related documents
TBarCode .NET Developer Manual V11
MES User Manual - Inductive Automation
TAC Vista
ISCE manual and installation, JPL
Crystall Ball Manual
2 Overview - Inductive Automation
3D Viewer - Kansas State University
FactorySQL 4.1 User Manual
SQA Higher Computing Unit 2 Software Development
MES User Manual - Inductive Automation
SE-SW5U(-WT) - AutomationDirect
Color Efex Pro 3.0 User Guide
MES User Manual - Inductive Automation
Oracle Lease and Finance Management User`s Guide
User`s Manual
Contents - Introduction
Presentation Slides
Early Warning System - Application User Guide
Gentlemen Agreements Rules for Cluster Uses
Net Protocol Suite User-Defined Decoding (UDD
SWIG Manual
"user manual"