Article ID: 3102, created on Nov 30, 2007, last review on May 9, 2014

  • Applies to:
  • Virtuozzo for Windows 3.5.1 SP1

Answer

It is necessary to use ip_addressType: 
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.swsoft.com/webservices/vza/3.0.3/types")]
   public class ip_addressType {      
        /// <remarks/>
        public string ip;      
        /// <remarks/>
        public string netmask;
    }
Example:
// vemBinding vem;
create2 parameter = new create2();
.......
((ve_configType)parameter.Item).address =new ip_addressType [1];
((ve_configType)parameter.Item).address[0]=new ip_addressType ();
((ve_configType)parameter.Item).address[0].ip ="10.0.0.3";
((ve_configType)parameter.Item).address[0].netmask ="255.255.255.0";       
......
vem.create(parameter);    

1348db476c8a5844ffbef8d503db9c15 965b49118115a610e93635d21c5694a8 d02f9caf3e11b191a38179103495106f 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF