Skip to main content

Raúl - [^BgTA^]'s Library tagged asp.net   View Popular

07 Jul 09

CodeRun - Online Development Platform

Plataforma online de desarrollo. Es un completo IDE de desarrollo para distintos lenguages como PHP, ASP, Javascript...

www.coderun.com - Preview

ide programming development online php ajax code asp.net for:sonesu

18 Feb 08

ASP.NET 2.0: URL Mapping with RegEx Support

  • Haciendo URLMapping en ASP.NET con soporte para Expressiones Regulares. - bgtasoft on 2008-02-18
26 Jul 06

Webservices and GtkSharp - Mono

  • Como crear un webservice en .NET (a manubrio) - bgtasoft on 2006-07-26
  • Writing


    Writing web services is not difficult, on the contrary it's a very easy task, you only need to derive from the System.Web.Services.WebService class, set some public methods with their respective attributes and ready. Lets starting writing our web service:


    #File: RemoteWebService.cs
    //mcs -r:System,System.Web,System.Web.Services RemoteWebService.cs -t:library
    using System;
    using System.Web;
    using System.Web.Services;
     
    namespace GtkWebservice
    {
    [WebService (Description="Our first web service")]
    public class RemoteWebService : System.Web.Services.WebService
    {
    [WebMethod (Description="Adds two numbers")]
    public int Add (int firstNumber, int secondNumber)
    {
    return firstNumber + secondNumber;
    }
    }
    }

    We need to set the [WebService ()] attribute in the class for setting that class as the web service class, and we need to set the [WebMethod ()] attribute for setting that method as one web service's method, remember to set as public your web service methods, of course if you want to access then by the "outside world".

  • You need to acces the web service from within your Gtk# application, for doing that task you need to get the proxy from that web service, use this:


    wsdl http://localhost:8081/index.asmx?wsdl -out:WSAppProxy.cs -n:GtkWebService

    for creating the proxy class that allows you to access the public methods from the webservice.

25 Jul 06

Cuyahoga - Home

  • CMS en .NET compatible con Mono - bgtasoft on 2006-07-25
1 - 9 of 9
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo