We can set binding type and enpoint address by code.
We have already add the service reference to the project and try below code
GatewayProxy.GatewayClient gatewayProxy;
BasicHttpBinding basicHttpBinding = new BasicHttpBinding();
EndpointAddress endPoint = new EndpointAddress("http:localhost:11105/Gateway.svc?wsdl");
basicHttpBinding.MaxBufferSize =65536;
basicHttpBinding.MaxReceivedMessageSize = 65536
XmlDictionaryReaderQuotas readerQuotas = new XmlDictionaryReaderQuotas();
readerQuotas.MaxStringContentLength = 65536;
readerQuotas.MaxArrayLength =65536;
basicHttpBinding.ReaderQuotas = readerQuotas;
using (this.gatewayProxy = new GatewayProxy.GatewayClient(basicHttpBinding, endPoint))
{
//write a code to call service function
}