1
Answer

how to use oauth2 authentication in wcf soap service.

i have created a wcf soap service, and i want to implement OAuth2 security in it, for better security. i found many articles on the google but all is releted to WCF REST service OAuth authentication, but my service is SOAP.
please let me know the steps from start to end, like how to register with google and what is the process when client call our service, amd how it will check. step by step.
 and it is free to register with google? 
Thanks 
Answers (1)
1
Jithil John
NA 1k 59.5k 9y
DateTime t1 = Convert.ToDateTime(textBox1.Text); 
DateTime t2 = Convert.ToDateTime(textBox2.Text);
TimeSpan ts = t1.Subtract(t2);
1
Jithil John
NA 1k 59.5k 9y
 TimeSpan duration = new TimeSpan(endtime.Ticks - startTime.Ticks);
0
Jithil John
NA 1k 59.5k 9y
string startTime = "7:00 AM"; 
string endTime = "2:00 PM";
TimeSpan duration = DateTime.Parse(endTime).Subtract(DateTime.Parse(startTime));