First question: are you calling the C# services from the Natural environment or are the C# programs to call services in Natural?
For C# programs to call Natural services (subprograms), you will need a Natural RPC Server running on the mainframe. To set up a Natural RPC Server, you need to modify some batch Natural JCL. Add a DD statement for CMPRMNIN and include the RPC subparameters you need, such as
where “servicename” is the middle of the service address triplet: RPC/servicename/CALLNAT (an uppercase “servicename” makes life easier on the mainframe)
Once this batch job is started, your C# programs can call it.
You only have to worry about SYSRPC and stub generation if you are calling FROM Natural to other RPC services. If this is the case, start your mainframe Natural session (online or batch) with AUTORPC=ON, which automatically generates the stubs on the fly for you. I don’t generate stubs except for esoteric debugging situations. SYSRPC SM is used to map the CALLNAT ‘subprog’ to the RPC service. Having the IDL used by to generate the .Net (C#) service for the EntireX RPC Server will help in filling out the SYSRPC SM panel.
Anyways…when you post subsequent queries, please use the “Natural Remote Procedure Call (RPC)” forum. Include versions of EntireX and Natural that you are running with as the instructions will vary a bit depending on the versions.