Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- BasicHttpBinding myBinding = new BasicHttpBinding();
- EndpointAddress myEndpoint = new
- EndpointAddress("http10.10.1xxxxxxxxxx4");
- ChannelFactory<SI_Certificados_OutMsg> myChannelFactory = new
- ChannelFactory<SI_Certificados_OutMsg>(myBinding, myEndpoint);
- var defaultCredentials =
- myChannelFactory.Endpoint.Behaviors.Find<ClientCredentials>();
- myChannelFactory.Credentials.UserName.UserName = "user";
- myChannelFactory.Credentials.UserName.Password = "123132";
- SI_Certificados_OutMsg serv = myChannelFactory.CreateChannel();
- DT_Certificados_DTO cert = new DT_Certificados_DTO();
- // ACA COLOCAR LOS DATOS PARA SER CONSUMIDOS
- myChannelFactory.Close();
- Console.Read();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement