Hi,
I developed a simple service in AX2012 which only has a method for counting everytime the service gets consumed.
[SysEntryPointAttribute(true)]
public int ContadoraAvrAvr()
{
_Counter ;
return _Counter;
}
But when I try to consume it in a C# console project I receive the error No overload for method takes 0 arguments. But my method does not need any arguments.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ConsumeBasicCustomService.ContadoraServicioGrupo;
namespace ConsumeBasicCustomService
{
class Program
{
static void Main(string[] args)
{
ContadoraServicioClient contadoraServicioVar;
contadoraServicioVar.ContadoraAvrAvr();
Console.WriteLine();
Console.ReadLine();
}
}
}