internal static AgilityServiceClient CreateProxy() { client = new AgilityServiceClient(); // To be uncommented during security phase. /*OperationContextScope scope = new OperationContextScope(client.InnerChannel); MessageHeaders messageHeadersElement = OperationContext.Current.OutgoingMessageHeaders; messageHeadersElement.Add(MessageHeader.CreateHeader("UserName", "", "JohnDoe")); messageHeadersElement.Add(MessageHeader.CreateHeader("Password", "", "MyPassword"));*/ return client; }
internal static AgilityServiceClient CreateProxy() { client = new AgilityServiceClient(); // To be uncommented during security phase. /*OperationContextScope scope = new OperationContextScope(client.InnerChannel); * MessageHeaders messageHeadersElement = OperationContext.Current.OutgoingMessageHeaders; * messageHeadersElement.Add(MessageHeader.CreateHeader("UserName", "", "JohnDoe")); * messageHeadersElement.Add(MessageHeader.CreateHeader("Password", "", "MyPassword"));*/ return(client); }
public ServiceAgent() { _proxy = ProxyFactory.CreateProxy(); }
public ServiceAgent() { _proxy = ProxyFactory.CreateProxy(); }