Can someone give me sample code or any concept to consume/call a wcf service with Basic Authentication (Need to Pass UserName and Password) From dot net core API. I am consuming this wcf service from dot net API from the API header I am only passing the input which is integer value(not the username not the password). But the wcf service is expecting username and password while consumption. Can anyone help me which concepts come here to pass the credentials while consuming the service without hardcode in code.
Thanks in advance.