You need to generate System.dll that contains the method for FIQSAMP1. Use Visual Studio.Net, select EntireX .Net Wrapper Application. In the wizard, choose to generate a Server (default is client).
If you have generated a dll from your IDL, you probably have a LIBRARY in there other than SYSTEM. Simplest workaround is to change the library name to SYSTEM and regenerate the server sample code.
Otherwise, you need to set the LOGON option in SYSRPC (or wherever you are setting the DFS options) to Y and call USR4018N to set the library if it is different from the library you are executing from.
Still getting errors
Now that the DLL is correct, the RPC server is still not picking it up.
Must be something to do with the app server.
Any help on the configuration of how to config the RPC server?
I’m the developer working with Kennylok on this problem.
Just to check, this is the .NET code generated by the generator. Is this correct?
namespace SoftwareAG.EntireX.NETWrapper.Server.SYSTEM
{
[EntireXVersion(“7.3.2.0”)]
[Library(“SYSTEM”)]
public class System
{ #region Method/Function for LIBRARY ‘SYSTEM’ PROGRAM ‘FIQSAMP1’
[Program("FIQSAMP1")]
public void SAMP(
[SendAs(IdlType.A, Length=10f, Trim=false)][In, Out] ref string testString1
){
// Write your own code here
testString1 = "hello";
}