I have a Console application, I add a Web reference simply by write click and use \"Add Service Reference\", then my .Config file changed to:
If i understand correctly, you want to set username and password on the header of the requests. You can achieve by using WCF Extensibility – Message Inspectors with IClientMessageInspector.BeforeSendRequest.
Create a class that implements IClientMessageInspector. In the BeforeSendRequest method, add your custom header to the outgoing message.
Please see this , this and this