public ResponseResult CreateWebSpace(string customerName, string name, string ipaddr, string planName, string ftpusername, string ftppassword, List <HostingProperty> properties) { var prop = new List <HostingProperty>(); prop.Add(new HostingProperty() { Name = "ftp_login", Value = ftpusername }); prop.Add(new HostingProperty() { Name = "ftp_password", Value = ftppassword }); if (properties != null) { prop.AddRange(properties); } var add = new WebspaceAddPacket(); add.webspace.add.genSetup.name = name; add.webspace.add.genSetup.ipaddress = ipaddr; add.webspace.add.genSetup.htype = "vrt_hst"; add.webspace.add.genSetup.OwnerLogin = customerName; add.webspace.add.planName = planName; add.webspace.add.hosting.Properties = prop.ToArray(); return(ExecuteWebRequest <WebspaceAddPacket, WebSpaceAddResult>(add).ToResult()); }
public ResponseResult CreateWebSpace(string name, string ipaddr) { var add = new WebspaceAddPacket(); add.webspace.add.genSetup.name = name; add.webspace.add.genSetup.ipaddress = ipaddr; return(ExecuteWebRequest <WebspaceAddPacket, WebSpaceAddResult>(add).ToResult()); }
public ResponseResult CreateWebSpace(string customerName, string name, string ipaddr, string planName) { var add = new WebspaceAddPacket(); add.webspace.add.genSetup.name = name; add.webspace.add.genSetup.ipaddress = ipaddr; add.webspace.add.genSetup.htype = "vrt_hst"; add.webspace.add.genSetup.OwnerLogin = customerName; add.webspace.add.planName = planName; return(ExecuteWebRequest <WebspaceAddPacket, WebSpaceAddResult>(add).ToResult()); }
public ResponseResult CreateWebSpace(string name, string ipaddr, List <HostingProperty> properties) { var prop = new List <HostingProperty>(); if (properties != null) { prop.AddRange(properties); } var add = new WebspaceAddPacket(); add.webspace.add.genSetup.name = name; add.webspace.add.genSetup.ipaddress = ipaddr; add.webspace.add.hosting.Properties = prop.ToArray(); return(ExecuteWebRequest <WebspaceAddPacket, WebSpaceAddResult>(add).ToResult()); }
public WebSpaceAddResult CreateWebSpace(string name, string ipaddr, string username, string password) { var prop = new List <HostingProperty>(); prop.Add(new HostingProperty() { Name = "ftp_login", Value = username }); prop.Add(new HostingProperty() { Name = "ftp_password", Value = password }); var add = new WebspaceAddPacket(); add.webspace.add.genSetup.name = name; add.webspace.add.genSetup.ipaddress = ipaddr; add.webspace.add.hosting.Properties = prop.ToArray(); return(ExecuteWebRequest <WebspaceAddPacket, WebSpaceAddResult>(add)); }
public void Serialize_WebSpacePacket_Type_Test() { var prop = new List <HostingProperty>(); prop.Add(new HostingProperty() { Name = "ftp_login", Value = "login" }); prop.Add(new HostingProperty() { Name = "ftp_password", Value = "password" }); var add = new WebspaceAddPacket(); add.webspace.add.genSetup.name = "domain.com"; add.webspace.add.genSetup.ipaddress = "10.6.6.5"; add.webspace.add.hosting.Properties = prop.ToArray(); var xml_string = client.SerializeObjectToXmlString <WebspaceAddPacket>(add); Assert.IsNotNull(xml_string); }