I am making an RPC call to Natural Subprogram from ASP.NET.
I get the following run time error when I invoke the program.
I did check it calling with 8 parameters, it works fine. When I pass
9 parameters it throws me following runtime error.
When Calling with 8 parameters Natural program is changed to accept 8 parameters
When Calling with 9 parameters Natural program is changed to accept 9 parameters
Run Time error
SoftwareAG.EntireX.NETWrapper.Runtime.XException: 10140935: BRKN3339 9999 NAT0935 Conflicting number of parameters (Subprogram BRKN3339/MOSAICSD/1/17). Lib=MOSAICSD,Pgm=BRKN3339,(NATURAL Error Info: Program=BRKN3339,Error=0935,Line=9999,Status=O,Level=01).
Call in ASP.NET goes something like this
using SoftwareAG.EntireX.NETWrapper.Runtime;
using SoftwareAG.EntireX.NETWrapper.Generated.brkn3339;
…
…
Broker broker = new Broker(“XXX.XXX:4000”);
Service srvc = new Service(broker,“XXX/XXXX/XXXXX”,"MOSAICSD ");
srvc.Timeout=120;
MOSAICSD bclient = new MOSAICSD(srvc);
// Invoke the program