This this topic covers configuring SOAtest to use RMI.
SOAtest allows users to perform Remote Method Invocation as long as the following conditions apply:
- The machine that is to invoke the RMI has all required interfaces as well as the necessary class files.
- All required Jar files or class files are included in SOAtest’s classpath:
- Choose Parasoft> Preferences.
- Open the Parasoft> System Properties page.
- The remote method returns a string (unless it is a one-way message).
- The remote interface consists of a method that takes one, and only one, string parameter (which will be the SOAP request).
Configuring SOAtest to Use RMI
To configure SOAtest to use RMI, complete the following:
- Complete the WSDL test creation wizard as normal (see Creating Tests From a WSDL for details).
- Double-click the node for the test that will be using RMI.
- In the right GUI panel, select the Transport tab and select RMI from the Transport drop-down menu.
- Configure the following options:
- Host: Specifies the machine name or IP that hosts the RMI service.
- Port: Specifies the port number for the RMI service.
- Binding: Specifies the RMI service binding. Binding in this case is the RMI registry where an application has registered its remote object to. For example, a lookup registry may resemble the following:
host = goldfish
port = 1717
binding/registry = Soatest
- Remote Interface: Specifies the client-side remote interface (the remote interface should be included in the classpath).
- Method Name: Specifies the method within the remote interface that invokes the RMI. Enter the name only (e.g. invokeSOAP). It is assumed that the method takes a String SOAP request and returns a String SOAP response.