Click here to Skip to main content
15,884,693 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends, I am first time doing on wcf, I create the method and setting the Endpoint with wshttpbinding and need to apply the security in wcf. for that using the wshttpbinding within that security mode is Message and clientcredentialtype is Username and

create one custom class and inherits the methos from customusernamepasswordValidator. Beacause before going the the request to method, we are validating with the username and password.

in web.config file i set the customValidation details. and hosted in IIS. After debugging the service then got the below erro


The service certificate is not provided. Specify a service certificate in ServiceCredentials.


In my requirement don't use any certificate like self or other ssl.But service should be more secure. we are using custom class and i send the username and password from clinet then before going to the pertinent method in wcf service we can do the authentication using Custom validition class. i was checked using BasicHttpBinding and nettcpbinding in binding but these two doen't fire the my method in wcf. pls help me......
Posted
Updated 23-Mar-14 3:54am
v4

You could generate then use self signed SSL Certificates. Here is a link[^]
 
Share this answer
 
Comments
CH Guravaiah 22-Mar-14 11:36am    
In my requirement don't use any certificate like self or other ssl.But service should be more secure. we are using custom class and i send the username and password from clinet then before going to the pertinent method in wcf service we can do the authentication using Custom validition class. i was checked using BasicHttpBinding and nettcpbinding in binding but these two doen't fire the my method in wcf. pls help me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900