Im trying to consume a Java web-service, that uses a certificate. I could generate the proxy, adding Service Reference. The problem is: It needs Basic HTTP Authorization Header.
Its necessary to encript the user/password and pass them in the header.
Thanks.
It depends on the version of .NET you’re using.
If you can use WCF, all you have to do is change the binding, pass the credentials, and let the Framework do the work.
You can find the instructions for configuration here (you only need the second half for Client configuration):
Transport Security with Basic Authentication – MSDN
Otherwise, you can download Web Service Extensions (WSE) 3.0 and use that for the simple authentication.
Implementing Direct Authentication with UsernameToken in WSE 3.0