Как я создаю страницу веб-сервиса ASMX без кода позади файла

Я бы сказал, чтобы проверить, что Sepasoft может предложить. Я знаю, что они хорошо работают (в общем) с Ignition Automation. Сканер штрих-кода Sepasoft связан с веб-сайтом Inductive Automation.

7
задан John Saunders 25 June 2012 в 15:06
поделиться

1 ответ

Быстрый образец:

<%@ WebService Language="C#" Class="SampleWebService" %>
using System;
using System.Data;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class SampleWebService : System.Web.Services.WebService
{

    [WebMethod]
    public string Hello()
    {
        return "Hello World!";
    }

    [WebMethod]
    public string DoStuff(out string stuff)
    {
        stuff = "Woohoo!";
        return "OK";
    }
}
19
ответ дан 6 December 2019 в 10:04
поделиться
Другие вопросы по тегам:

Похожие вопросы: