Aklımda Kalası Kelimeler

* давайте работать вместе
* Zarf ve Mazruf, Zerafet(xHoyratlık) ile aynı kökten(za-ra-fe) gelir
* Bedesten
* Suç subuta ermiştir - Suç sabit olmuştur

17 Mart 2015 Salı

Only Web services with a [ScriptService] attribute on the class definition can be called from script.

Hata aşağıdaki gibi:

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"}

Hiç yorum yok: