1
Answer

How to update WCF service APIs in IIS website

Ankita Goel

Ankita Goel

7y
280
1
I am new to WCF Service and IIS. Please help. Set up is mentioned below. 1. I have Entity framework project which deal with Database. 2. Then I have WCF service class library (no app.config file) which writes or read values from EF project. 3. At the end I have website project (ASP.Net Website) which hosts WCF service on IIS (This project has Web.Config file which contains WCF service configuration). 4. In IIS, I created a new application under Default Web Site. When I browse the Service.svc file, I can see all the APIs\methods exposed by WCF service.
 
Now the problem is, it worked first time. But I want to add new APIs in WCF service, but those APIs are not getting reflected in IIS hosted URL.
 
Things I tried -> 1. Building entire solution. 2. Removing reference of WCF project libraries from website project and reattaching. 3. Building website and publishing website. 4. Reset IIS Manager and refresh everything.
 
Please help how can I update the APIs exposed in IIS when update the WCF service.
Answers (1)
0
Sivaraman Dhamodaran
NA 61.8k 2.7m 12y
Well. You don't have any special char need in your spec.

Define a strings like:
"abcdefghijklmnopqrstuvwxyz0123456789".
"abcdefghijklmnopqrstuvwxyz"
" 0123456789"
Have a boolean flag for each.
Algo:
1) Iterate through each pwd char. Make sure the char falls in above string. When char not found, set the flag to false. When a char is lower case letter set the relevant flag to true. When a char is digit set flag related to digit as true. At the end of iteration you can check the flags to satisfy first three points.
2) For fourth point you need a inner loop that again iterates through all your chars. Here you can check the repeatable patterns.