Search code examples
javawcfinteropbasichttpbindingwshttpbinding

Using custom WCF username/password (UserNamePasswordValidator) authentication with Java


I've found a good example about authenticating WCF services with custom username/password (A simple WCF service with username password authentication: the things they don’t tell you). This fits what I need... partially, I guess. It uses wsHttpBinding and Message as the security mode.

The WCF service I need to build will have Java clients, and my question is if the example from the link above works with Java ("interops" well). Or should I go with basicHttpBinding, securing the connection at transport level (https)?

Thanks


Solution

  • WCF implements lots of Web Service protocols: http://msdn.microsoft.com/en-us/library/ms730294

    Although complicated solution is not necessary the best one. Go ahead with basicHttpBinding and Transport security if it fits all other requirements you have.

    There is good all-in-one article that describes configuration:

    http://www.remondo.net/using-ssl-transport-security-wcf-basichttpbinding/