Home > other >  The Java connection RTX send notification server
The Java connection RTX send notification server

Time:10-10

Recent integration of OA and RTX, you need to add users, sending messages, and other functions, deployment of RTX on my PC server, test success, but the company deployed on the server would have failed
 
Public RTXDoImpl () {
RtxsvrapiObj=new RTXSvrApi ();
RtxInit=rtxsvrapiObj. The Init ();
If (rtxInit) {
182.148.107.248 rtxsvrapiObj. SetServerIP (" ");//server IP
RtxsvrapiObj. SetServerPort (8000);
//rtxsvrapiObj setServerPort (6000);
}
}

@ Override
Public int addUser (String longName, String deptID, String CN_Name, String PWD) {
If (rtxInit) {
Return rtxsvrapiObj. AddUser (longName deptID, CN_Name, PWD);
}
Return RESULT_ERROR;
}

Then invoke addUser method, the test code as follows
 
RTXDoInterface RTX=new RTXDoImpl ();
//processing returns the
Int result=1;
Result=RTX. AddUser (" lyy ", "12", "lyy", "lyy");
System.out.println(result);
//the last call
RTX. UnInit ();

But the results
Error code: 992 error message: unable to connect to the SERVER RTX SDK, please make sure the RTXSERVERAPI. INI in the IP address/port is configured correctly
- 992.

CodePudding user response:

The building Lord succeeded not excuse me? My program can also succeed with RTX server machine, not a machine connection fails, IP Limit XML also add IP address,
  • Related