Example #1
0
 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;
 }
Example #2
0
        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);
        }
Example #3
0
 public ServiceAgent()
 {
     _proxy = ProxyFactory.CreateProxy();
 }
Example #4
0
 public ServiceAgent()
 {
     _proxy = ProxyFactory.CreateProxy();
 }