Using XpertRule as a Web Service

The runtime server 'XRserver.dll' can be wrapped so that the GoXML method is available as a web service.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using XpertRule;
namespace XRserverWebService
{
    /// <summary>
    /// Web service for calling the GoXML method of XRserver
    /// </summary>
    [WebService(Namespace = "http://www.xpertrule.com/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 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 XRserverService : System.Web.Services.WebService
    {
        [WebMethod]
        public string GoXML(string aXML)
        {
            Server2kClass xr = new Server2kClass();
            Object r = xr.GoXML(aXML);
            return (String)r;
        }
    }
}

A sample Visual Studio project can be supplied on request to illustrate this functionality.