Asked by:
simple web service with a HTML login page

Question
-
User-1934105638 posted
Hello friends,
I am currently working on a wcf project.
I have to transfer data from html to database using webservice.
Please share a simple login example.
with all source code
Wednesday, October 30, 2013 7:11 AM
All replies
-
User-488622176 posted
One day they should add a "google search" button to this forum
- basic webservice example : http://support.microsoft.com/kb/308359/nl, http://www.codeproject.com/Articles/863/Your-first-C-Web-Service
- login web service : http://www.c-sharpcorner.com/UploadFile/718fc8/creating-web-service-for-login-page/
Wednesday, October 30, 2013 8:19 AM -
User-742633084 posted
Hi DevinderYada...,
WCF itself is for provide non-UI service operations so that client-side can invoke server-side operations/functions across network boundary. And generally, we do not use login form to secure WCF service. For WCF service authentication, here are some references:
#Chapter 5: Authentication, Authorization, and Identities in WCF
http://msdn.microsoft.com/en-us/library/ff647503.aspx#Authentication and Authorization in WCF Services - Part 1
http://msdn.microsoft.com/en-us/library/ff405740.aspx#Eight steps to enable Windows authentication on WCF BasicHttpBinding
http://www.codeproject.com/Articles/36289/8-steps-to-enable-windows-authentication-on-WCF-Baor if you want to invoke WCF service from HTML based web page, you can take a look at JQuery which is a javascript library that can help consuming HTTP/REST service from html+javascript based page.
#Consuming a WCF / ASMX / REST Service using jQuery
http://www.codeproject.com/Articles/59551/Consuming-a-WCF-ASMX-REST-Service-using-jQuery#Consuming WCF REST Services Using jQuery AJAX Calls
http://www.codeproject.com/Articles/128478/Consuming-WCF-REST-Services-Using-jQuery-AJAX-CallWednesday, October 30, 2013 11:21 PM -
User-1934105638 posted
Please don,t provide links
provide some source code
Thursday, October 31, 2013 6:10 AM -
User-488622176 posted
Sorry, we can help you to solve your issue or help you to answer your questions. However, we cannot do the work for you. The links offer some real samples on how to achieve the goals as you described. There is no added value in copying the code into this forum and making sure the formatting is readable. If you have any question related to specific code parts, feel free to post them.
Thursday, October 31, 2013 7:09 AM -
User-1934105638 posted
I am not asking to do my work
I have tried them but I am not getting any result.
Just to a simple work .
took two textbox , button,
when a value is written in textbox and button is clicked then their sum is displayed on that page
any example you like, but when I am copy that it will work
Thursday, October 31, 2013 7:48 AM -
User-488622176 posted
What is the problem (why doesn't it work?)? Do you get any errors?
what does work? Do you manage to get a simple login.aspx page with 2 text fields and a button? Do you manage to handle the button_click event at server side?
Thursday, October 31, 2013 8:25 AM