15,917,060 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by NavjotSingh_013 (Top 3 by date)
NavjotSingh_013
9-Apr-15 8:26am
View
Configure your service on IIS and you can choose you port in Edit Site > Bindings
NavjotSingh_013
9-Apr-15 8:18am
View
I have also created web services for android using Web API.
The best approach for authentication is token based as Web API is state less.
for login you can use any encryption algo and after user authentication create a random token (GUID/ "date"+Math.Random()), save it (you need to keep track which user is sending request, for that create a flat table to record details like first login attempt, logout etc) and return that token in response header. After that for every request from android told them to send that token in 'request header' for authentication. You will verify that token and if valid then proceed further.
Try to debug your web API using Fiddler or some other tool and find the reason for error, there might be issue in routeconfig.cs.
Can you just post the URL you are hitting and code of routeconfig.cs
NavjotSingh_013
9-Apr-15 3:30am
View
COALESCE is function which handle NULL values and takes much more time.
You can actual run your both queries in batch and include actual execution plan before executing queries and see which query consume much more time.
The one which uses COALESCE will take 99% of time relative to batch.