using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System; using System.IO; using System.Runtime.Remoting; using System.Runtime.Remoting.Channels; using System.Net; using System.Diagnostics; using System.Configuration.Assemblies; using Soap_Test.aim; using System.ServiceModel; using System.Windows.Forms; using System.Web.Services.Protocols; namespace Soap_Test { class Program { [STAThread] static void Main(string[] args) { Service aim = new Service(); string result = aim.WORD(); Console.WriteLine(result); Console.ReadLine(); } } }
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; using System.ServiceModel; [WebService(Namespace = "http://aim.oscautomation.com")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. [System.Web.Script.Services.ScriptService] public class Service : System.Web.Services.WebService { public Service () { //Uncomment the following line if using designed components //InitializeComponent(); } [WebMethod] public string WORD() { return "Work"; } [WebMethod] public string HelloWorld() { return "Hello World"; } [WebMethod] public string Name() { return "Name"; } [WebMethod] public string GetData(int value) { return string.Format("You entered: {0}", value); } }
Service
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)