How the RTX server SDK calls across servers

Source: Internet
Author: User

1. Confirm installation of the RTX Server SDK
On the developed machine, you must verify that the RTX server SDK is installed and that it is consistent with the version of the RTX server. Behind this computer we are referred to as the SDK computer.

2. Step 2, let go of the limit of IP address
Your RTX Server SDK and the RTX server are installed on different machines, and you must ensure that the network of the two machines is interoperable. and to ensure that the corresponding port is open, if the firewall is installed, COM calls the SDK new interface needs to open 8006 port, call the old interface needs to open 6000 port, HTTP method calls need to open 8012 port, and need to start the Rtx-http server.

Next configure the RTX server to allow machine access with the RTX Server SDK.

2.1. com mode, old interface
If your program uses COM cross-server invocation and is an interface provided by the Rtxsapilib Library, an old interface compatible with the RTX server SDK 3.61, You need to modify the IP node under the Appclient node in the Sdkproperty.xml file in the RTX Server installation directory:

By default, IP is limited and only native calls to the SDK are allowed. If you turn on IP restrictions, such as: Allow 172.30.13.13 to invoke the SDK, configure the following:

<APIClient>

<iplimit enabled= "1" >

<IP>127.0.0.1</IP>

<IP>172.30.13.13</IP>

</IPLimit>

</APIClient>

2.2. com mode, old interface (cont.)
One more step of the COM cross-server invocation of the old interface is the need to modify the configuration file for the RTX Server SDK port, and the Rtxserverapi.ini configuration content under the RTX Server SDK installation directory is as follows:

[Common]

Host = IP address of the RTX server

Port = 6000
This file is modified to be placed in the application directory, such as the Java EE Web application deployment under Tomcat placed under the Bin directory under Tomcat, and the ASP program does not need to be modified, put in the installation location.

2.3. com mode, new interface
If your program uses COM cross-server invocation and is the interface provided by the Appobject library, the new interface for the RTX Server SDK, You need to modify the Appconnconfig.xml file in the RTX Server installation directory to release the appropriate IP restrictions, such as: Allow 192.168.0.12 to invoke the SDK, configured as follows:

<?xml version= "1.0"?>

<Property>

<APIClient>

<iplimit enabled= "1" >

<IP>127.0.0.1</IP>

<IP>192.168.0.12</IP>

</IPLimit>

</APIClient>

</Property>

2.4. HTTP mode
If your program uses HTTP cross-server calls, you need to modify the IP node under the Sdkhttp node in the Sdkproperty.xml file in the RTX Server installation directory, similar to the previous:

<SDKHttp>

<iplimit enabled= "1" >

<IP>127.0.0.1</IP>

<IP> IP Address of the computer calling the HTTP interface </IP>

</IPLimit>

</SDKHttp>

Note that this file needs to be aware of case sensitivity, which is sdkhttp, not sdkhttp (some versions of the files that are written are this, are wrong). Please also note that in your own. php or. cgi file to refer to iplimit.php, refer to Attachment test.cgi for practical use.

3. Step 3, verify that the port and network are normal
After configuring the IP limit, restart the RTX server, we open a command window from the machine installed on the RTX Server SDK and use Telnet to detect if some ports are connected properly. If you typed the following command without any hint, a black window for a long time indicates that the connection is normal.

3.1. com mode, old interface
Telnet RTX <rtx Server ip> 6000

3.2. com mode, new interface
Telnet RTX <rtx Server ip> 8006

3.3. HTTP mode
Telnet RTX <rtx Server ip> 8012

4. Error judgment
1. If the direct display cannot connect, or if the service is denied, the firewall is not turned on, check the firewall policy or network status.
2. If a black window is displayed, but the server disconnects soon, then there is a problem with the RTX server configuration.
3. For HTTP mode, you can also use the browser to access a corresponding Web page to try, note the address on the input port number 8012, all the pages are in the RTX server Webroot directory.

How the RTX server SDK calls across servers

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.