Servisimizde:
<%@ WebService Language="C#" Class="NSCem.Cem" %> using System; using System.Collections.Generic; using System.Configuration; using System.Web.Services; using System.Xml.Serialization; namespace NSCem { [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] //[System.Web.Script.Services.ScriptService] public class Cem : System.Web.Services.WebService { [WebMethod] public string f_Hello(string _gelen) { return "Gelen: "+_gelen; } } }
Olması gereken
... [System.ComponentModel.ToolboxItem(false)] //[System.Web.Script.Services.ScriptService] public class Cem : System.Web.Services.WebService { ...
POST /HTUS/cem.asmx/f_Hello HTTP/1.1 Host: 10.130.214.205:8082 Content-Type: application/json; charset=utf-8 Cache-Control: no-cache {"_gelen":"cem"}