hi friends
i have a simple wcf web service,i wanna consume service using xmlHttpRequest object..whats wrong with my code ?
namespace XmlHttpWCFService
{
// NOTE: If you change the interface name "IService1" here, you must also update the reference to "IService1" in Web.config.
[ServiceContract]
public interface IService1
{
[OperationContract]
string GetData(string input);
}
}
namespace XmlHttpWCFService
{
public class Service1 : IService1
{
public string GetData(string input)
{
return string.Format("You entered: {0}", input);
}
}
}
//client :
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="AjaxClient._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/x ...
Go to the complete details ...