Hi Jason,
the EntireX 7.1.1 .NET Wrapper generates C# classes that implement a client stub for an EntireX RPC service described by an (EntireX) IDL description.
See the “EntireX Developer’s Kit” → “EntireX .NET Wrapper” → “Writing Applications - EntireX .NET Wrapper” for a detailed description how to write an EntireX .NET application.
The generated C# client stub is not .NET Web service enabled by itself. But you can easily create a .NET Web service with Visual Studio .NET that publishes methods of the EntireX RPC service (or own methods that just use the EntireX RPC service) with VS .NET.
Example:
I assume the .NET Wrapper Example EntireX\Examples\NET Wrapper\client\calc has been built as described in the README file. Then a new “ASP .NET Web Service” project can be created with references to the generated client stub and the .NET Wrapper runtime. The following code can be used as an example (in the .asmx file) how to implement a Web method “Hi” that exposes the “Hello” method of the example.
Regards, Dietmar.
—
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Web;
using System.Web.Services;
using System.Text;
using SoftwareAG.EntireX.NETWrapper.Runtime;
using SoftwareAG.EntireX.NETWrapper.Generated.example;
namespace WebService1
{
///
/// Summary description for Service1.
/// public class Service1 : System.Web.Services.WebService
{
public Service1()
{
//CODEGEN: This call is required by the
ASP.NET Web Services Designer
InitializeComponent();
}
#region Component Designer generated code
//Required by the Web Services Designer
private IContainer components = null;
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// private void InitializeComponent()
{
}
///
/// Clean up any resources being used.
/// protected override void Dispose( bool disposing )
{
if(disposing && components != null)
{
components.Dispose();
}
base.Dispose(disposing);
}
#endregion // WEB SERVICE EXAMPLE
[WebMethod]
public string Hi(string message)
{
Example e = new Example();
StringBuilder msg = new StringBuilder(“Hello and goodbye!”);
e.Hello(“”, ref msg);
return msg.ToString();
}
}
}
#webMethods#EntireX#Mainframe-Integration