Use the ConnectionManager API to create a connection to the appropriate Unwired Server port.
Compare these examples.
This example is for a single Unwired Server environment over HTTP:
Connection c = new Connection();
c.MobiLinkHost = "sup.sybase.com";
c.MobiLinkPort = 2439;
c.MobiLinkStreamType = MobiLinkStreamType.Http;
c.Name = "supAdmin";
c.Package = "Customer_1.0.0";
c.UserName = "supAdmin";
c.Password = "supAdmin";
c.Save();
This example is for a single Unwired Server environment over HTTPS:
Connection c = new Connection();
c.MobiLinkHost = "sup.sybase.com";
c.MobiLinkPort = 2440;
c.MobiLinkStreamType = MobiLinkStreamType.Https;
c.MobiLinkStreamParams="trusted_certificates=full_path_to_Publiccert.crt";
c.Name = "supAdmin";
c.Package = "Customer_1.0.0";
c.UserName = "supAdmin";
c.Password = "supAdmin";
c.Save()
This example is for a relay server farm over HTTP:
Connection c = new Connection();
c.MobiLinkHost = "sup.sybase.com";
c.MobiLinkPort = 80;
c.MobiLinkStreamType = MobiLinkStreamType.Http;
c.MobiLinkStreamParams = "url_suffix=/ias_relay_server/client/rs_client.dll/[SUP_FARM_NAME]";
c.Name = "supAdmin";
c.Package = "Customer_1.0.0";
c.UserName = "supAdmin";
c.Password = "supAdmin";
c.Save();
This example is for a realy server farm over HTTPS:
Connection c = new Connection();
c.MobiLinkHost = "sup.sybase.com";
c.MobiLinkPort = 443;
c.MobiLinkStreamType = MobiLinkStreamType.Https;
c.MobiLinkStreamParams="trusted_certificates=full_path_to_Publiccert.crt";
c.MobiLinkStreamParams = "url_suffix=/ias_relay_server/client/rs_client.dll/[SUP_FARM_NAME]";
c.Name = "supAdmin";
c.Package = "Customer_1.0.0";
c.UserName = "supAdmin";
c.Password = "supAdmin";
c.Save()