<?
/**
 * VoiceOne Webservices Methods
 *  
 * @package voiceone_webservices
 * @subpackage Network
 */
// ---- NetworkConf ------------------------------------------------------------
$server->wsdl->addComplexType(
    'NetworkConf',
    'complexType',
    'struct',
    'all',
    '',
    array(
        'host'  	    => array('name'=>'host', 	      'type'=>'xsd:string'),
        'domain'  	  => array('name'=>'domain', 	    'type'=>'xsd:string'),
        'address'  	  => array('name'=>'address', 	  'type'=>'xsd:string'),
        'netmask'  	  => array('name'=>'netmask', 	  'type'=>'xsd:string'),
        'network'  	  => array('name'=>'network', 	  'type'=>'xsd:string'),
        'broadcast'   => array('name'=>'broadcast',   'type'=>'xsd:string'),
        'gateway'  	  => array('name'=>'gateway', 	  'type'=>'xsd:string'),
        'dns1'  		  => array('name'=>'dns1', 			  'type'=>'xsd:string'),
        'dns2'  		  => array('name'=>'dns2', 			  'type'=>'xsd:string'),
        'dhcp_status' => array('name'=>'dhcp_status', 'type'=>'xsd:int'),
        'dhcp_range_from'	=> array('name'=>'dhcp_range_from', 'type'=>'xsd:string'),
        'dhcp_range_to'		=> array('name'=>'dhcp_range_to', 	'type'=>'xsd:string'),
        'vpn_range_from'	=> array('name'=>'vpn_range_from', 	'type'=>'xsd:string'),
        'vpn_range_to'		=> array('name'=>'vpn_range_to', 	  'type'=>'xsd:string'),
        'ntp_host'		=> array('name'=>'ntp_host', 	  'type'=>'xsd:string'),
        'ntp_zone'    => array('name'=>'ntp_zone', 	  'type'=>'xsd:string'),
        'ntp_time'    => array('name'=>'ntp_time', 	  'type'=>'xsd:string')
    )
);
// ---- NetworkConf[] ----------------------------------------------------------
$server->wsdl->addComplexType(
    'NetworkConfArray',
    'complexType',
    'array',
    '',
    'SOAP-ENC:Array',
    array(),
    array(
        array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:NetworkConf[]')
    ),
    'tns:NetworkConf'
);
// ---- SmtpConf ---------------------------------------------------------------
$server->wsdl->addComplexType(
    'SmtpConf',
    'complexType',
    'struct',
    'all',
    '',
    array(
        'smtp_host'  	  => array('name'=>'smtp_host', 	  'type'=>'xsd:string'),
        'smtp_protocol' => array('name'=>'smtp_protocol', 'type'=>'xsd:string'),
        'smtp_port'     => array('name'=>'smtp_port',     'type'=>'xsd:int'),
        'smtp_from'  	  => array('name'=>'smtp_from', 	  'type'=>'xsd:string'),
        'smtp_auth'  	  => array('name'=>'smtp_auth', 	  'type'=>'xsd:string'),
        'smtp_user'     => array('name'=>'smtp_user',     'type'=>'xsd:string'),
        'smtp_pass'     => array('name'=>'smtp_pass',     'type'=>'xsd:string')
    )
);
// ---- SmtpConf[] -------------------------------------------------------------
$server->wsdl->addComplexType(
    'SmtpConfArray',
    'complexType',
    'array',
    '',
    'SOAP-ENC:Array',
    array(),
    array(
        array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:SmtpConf[]')
    ),
    'tns:SmtpConf'
);
?>