I want to call WCF services dynamically without adding any service refrences and without adding any DTO of the service.
I have 2 information URL of WCF services and Method name and I have to create SOAP message dynamically.
For that I have write the following code but "Call WCF Services code" is not working.
It is giving error on "Message ret = irc.Request(m);" line.
I have check "XMLReader" also not showing any value.
Call WCF Services code
BasicHttpBinding binding = new BasicHttpBinding(BasicHttpSecurityMode.None); IChannelFactory<IRequestChannel> factory = binding.BuildChannelFactory<IRequestChannel>(new BindingParameterCollection()); factory.Open(); EndpointAddress address = new EndpointAddress("http://localhost:65457/Service1.svc"); IRequestChannel irc = factory.CreateChannel(address); &nb
View Complete Post