Scada
Click here for a complete list of operations.
CUDTariff
CUD Tariff
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /Scada.asmx HTTP/1.1
Host: novoapi.witechusa.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "Scada/CUDTariff"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ClsSeguridad xmlns="Scada">
<User>string</User>
<Password>string</Password>
<Token>string</Token>
<DataBaseEngine>ORACLE or MYSQL or SQLSERVER or POSTGRES</DataBaseEngine>
</ClsSeguridad>
</soap:Header>
<soap:Body>
<CUDTariff xmlns="Scada">
<Operation>string</Operation>
<Data>
<id_tariff>int</id_tariff>
<id_tariff_category>int</id_tariff_category>
<category_name>string</category_name>
<id_tariff_subcategory>int</id_tariff_subcategory>
<subcategory_name>string</subcategory_name>
<id_tariff_type>int</id_tariff_type>
<tariff_type_name>string</tariff_type_name>
<id_currency>int</id_currency>
<currency_name>string</currency_name>
<id_unit>int</id_unit>
<unit_name>string</unit_name>
<id_field_comparison>int</id_field_comparison>
<field_name>string</field_name>
<name>string</name>
<description>string</description>
<value>double</value>
<read_security_level>int</read_security_level>
<write_security_level>int</write_security_level>
<creation_user>string</creation_user>
<creation_user_name>string</creation_user_name>
<modification_user>string</modification_user>
<modification_user_name>string</modification_user_name>
<creation_datetime>dateTime</creation_datetime>
<modification_datetime>dateTime</modification_datetime>
<record_status>boolean</record_status>
<id_trm_type>int</id_trm_type>
<trm_name>string</trm_name>
<zones>string</zones>
</Data>
</CUDTariff>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<CUDTariffResponse xmlns="Scada">
<CUDTariffResult>
<Data>
<ClsTariff>
<id_tariff>int</id_tariff>
<id_tariff_category>int</id_tariff_category>
<category_name>string</category_name>
<id_tariff_subcategory>int</id_tariff_subcategory>
<subcategory_name>string</subcategory_name>
<id_tariff_type>int</id_tariff_type>
<tariff_type_name>string</tariff_type_name>
<id_currency>int</id_currency>
<currency_name>string</currency_name>
<id_unit>int</id_unit>
<unit_name>string</unit_name>
<id_field_comparison>int</id_field_comparison>
<field_name>string</field_name>
<name>string</name>
<description>string</description>
<value>double</value>
<read_security_level>int</read_security_level>
<write_security_level>int</write_security_level>
<creation_user>string</creation_user>
<creation_user_name>string</creation_user_name>
<modification_user>string</modification_user>
<modification_user_name>string</modification_user_name>
<creation_datetime>dateTime</creation_datetime>
<modification_datetime>dateTime</modification_datetime>
<record_status>boolean</record_status>
<id_trm_type>int</id_trm_type>
<trm_name>string</trm_name>
<zones>string</zones>
</ClsTariff>
<ClsTariff>
<id_tariff>int</id_tariff>
<id_tariff_category>int</id_tariff_category>
<category_name>string</category_name>
<id_tariff_subcategory>int</id_tariff_subcategory>
<subcategory_name>string</subcategory_name>
<id_tariff_type>int</id_tariff_type>
<tariff_type_name>string</tariff_type_name>
<id_currency>int</id_currency>
<currency_name>string</currency_name>
<id_unit>int</id_unit>
<unit_name>string</unit_name>
<id_field_comparison>int</id_field_comparison>
<field_name>string</field_name>
<name>string</name>
<description>string</description>
<value>double</value>
<read_security_level>int</read_security_level>
<write_security_level>int</write_security_level>
<creation_user>string</creation_user>
<creation_user_name>string</creation_user_name>
<modification_user>string</modification_user>
<modification_user_name>string</modification_user_name>
<creation_datetime>dateTime</creation_datetime>
<modification_datetime>dateTime</modification_datetime>
<record_status>boolean</record_status>
<id_trm_type>int</id_trm_type>
<trm_name>string</trm_name>
<zones>string</zones>
</ClsTariff>
</Data>
</CUDTariffResult>
</CUDTariffResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /Scada.asmx HTTP/1.1
Host: novoapi.witechusa.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Header>
<ClsSeguridad xmlns="Scada">
<User>string</User>
<Password>string</Password>
<Token>string</Token>
<DataBaseEngine>ORACLE or MYSQL or SQLSERVER or POSTGRES</DataBaseEngine>
</ClsSeguridad>
</soap12:Header>
<soap12:Body>
<CUDTariff xmlns="Scada">
<Operation>string</Operation>
<Data>
<id_tariff>int</id_tariff>
<id_tariff_category>int</id_tariff_category>
<category_name>string</category_name>
<id_tariff_subcategory>int</id_tariff_subcategory>
<subcategory_name>string</subcategory_name>
<id_tariff_type>int</id_tariff_type>
<tariff_type_name>string</tariff_type_name>
<id_currency>int</id_currency>
<currency_name>string</currency_name>
<id_unit>int</id_unit>
<unit_name>string</unit_name>
<id_field_comparison>int</id_field_comparison>
<field_name>string</field_name>
<name>string</name>
<description>string</description>
<value>double</value>
<read_security_level>int</read_security_level>
<write_security_level>int</write_security_level>
<creation_user>string</creation_user>
<creation_user_name>string</creation_user_name>
<modification_user>string</modification_user>
<modification_user_name>string</modification_user_name>
<creation_datetime>dateTime</creation_datetime>
<modification_datetime>dateTime</modification_datetime>
<record_status>boolean</record_status>
<id_trm_type>int</id_trm_type>
<trm_name>string</trm_name>
<zones>string</zones>
</Data>
</CUDTariff>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<CUDTariffResponse xmlns="Scada">
<CUDTariffResult>
<Data>
<ClsTariff>
<id_tariff>int</id_tariff>
<id_tariff_category>int</id_tariff_category>
<category_name>string</category_name>
<id_tariff_subcategory>int</id_tariff_subcategory>
<subcategory_name>string</subcategory_name>
<id_tariff_type>int</id_tariff_type>
<tariff_type_name>string</tariff_type_name>
<id_currency>int</id_currency>
<currency_name>string</currency_name>
<id_unit>int</id_unit>
<unit_name>string</unit_name>
<id_field_comparison>int</id_field_comparison>
<field_name>string</field_name>
<name>string</name>
<description>string</description>
<value>double</value>
<read_security_level>int</read_security_level>
<write_security_level>int</write_security_level>
<creation_user>string</creation_user>
<creation_user_name>string</creation_user_name>
<modification_user>string</modification_user>
<modification_user_name>string</modification_user_name>
<creation_datetime>dateTime</creation_datetime>
<modification_datetime>dateTime</modification_datetime>
<record_status>boolean</record_status>
<id_trm_type>int</id_trm_type>
<trm_name>string</trm_name>
<zones>string</zones>
</ClsTariff>
<ClsTariff>
<id_tariff>int</id_tariff>
<id_tariff_category>int</id_tariff_category>
<category_name>string</category_name>
<id_tariff_subcategory>int</id_tariff_subcategory>
<subcategory_name>string</subcategory_name>
<id_tariff_type>int</id_tariff_type>
<tariff_type_name>string</tariff_type_name>
<id_currency>int</id_currency>
<currency_name>string</currency_name>
<id_unit>int</id_unit>
<unit_name>string</unit_name>
<id_field_comparison>int</id_field_comparison>
<field_name>string</field_name>
<name>string</name>
<description>string</description>
<value>double</value>
<read_security_level>int</read_security_level>
<write_security_level>int</write_security_level>
<creation_user>string</creation_user>
<creation_user_name>string</creation_user_name>
<modification_user>string</modification_user>
<modification_user_name>string</modification_user_name>
<creation_datetime>dateTime</creation_datetime>
<modification_datetime>dateTime</modification_datetime>
<record_status>boolean</record_status>
<id_trm_type>int</id_trm_type>
<trm_name>string</trm_name>
<zones>string</zones>
</ClsTariff>
</Data>
</CUDTariffResult>
</CUDTariffResponse>
</soap12:Body>
</soap12:Envelope>