static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials) { secure secure = new secure(); settingClass settings = secure.get_settings(); if (settings.debug == "true") { Console.WriteLine("CxSDKWebService called: {0}", settings.CxSDKWebService); } serviceEndpoint.Address = new System.ServiceModel.EndpointAddress(new System.Uri(settings.CxSDKWebService), new System.ServiceModel.DnsEndpointIdentity("")); }
public ActionResult MySetting(settingClass s)//帶資料 { // if (Session["member"] == null) { return(RedirectToAction("xxx", "CV")); } string userMail = Session["member"].ToString(); (new settingFac()).editMySetting(s, userMail);//ADO 寫法 TempData["message"] = "更新成功"; return(RedirectToAction("MySetting")); }
static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials) { secure secure = new secure(); settingClass settings = secure.get_settings(); Console.WriteLine("CxSDKWebService called: {0}", settings.CxSDKWebService); Console.WriteLine("CxSDKWebService called: {0}", _options.token.user_name); serviceEndpoint.Address = new System.ServiceModel.EndpointAddress(new System.Uri(settings.CxSDKWebService), new System.ServiceModel.DnsEndpointIdentity("")); System.ServiceModel.BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding(); binding.Security.Mode = System.ServiceModel.BasicHttpSecurityMode.Transport; binding.Security.Transport.ClientCredentialType = System.ServiceModel.HttpClientCredentialType.None; serviceEndpoint.Binding = binding; }