Advertisement
Guest User

Untitled

a guest
Dec 1st, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. static void Main(string[] args)
  2. {
  3. BasicHttpBinding myBinding = new BasicHttpBinding();
  4. EndpointAddress myEndpoint = new
  5. EndpointAddress("http10.10.1xxxxxxxxxx4");
  6. ChannelFactory<SI_Certificados_OutMsg> myChannelFactory = new
  7. ChannelFactory<SI_Certificados_OutMsg>(myBinding, myEndpoint);
  8. var defaultCredentials =
  9. myChannelFactory.Endpoint.Behaviors.Find<ClientCredentials>();
  10. myChannelFactory.Credentials.UserName.UserName = "user";
  11. myChannelFactory.Credentials.UserName.Password = "123132";
  12.  
  13. SI_Certificados_OutMsg serv = myChannelFactory.CreateChannel();
  14. DT_Certificados_DTO cert = new DT_Certificados_DTO();
  15. // ACA COLOCAR LOS DATOS PARA SER CONSUMIDOS
  16.  
  17. myChannelFactory.Close();
  18. Console.Read();
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement