+

Search Tips   |   Advanced Search


Record a SOAP request

This section describes how to record the interaction between an existing SOAP client and the web services server.

  1. Alter the SOAP client settings so that it uses NeoLoad as a proxy:

    • hostname: name or IP address of the machine currently running NeoLoad.
    • port: the NeoLoad HTTP recorder port, 8090 by default. This setting can be changed in the preferences.

    Please refer to the documentation accompanying your web services Framework for instructions on how to change the proxy settings. As a guide:

    • Axis: Modify the http.proxyHost and http.proxyPort system properties.

    For example, place the following lines in your code:

    System.setProperty("http.proxyHost", "localhost");
    System.setProperty("http.proxyPort", "8090");

    or modify the command line as follows:

    java -Dhttp.proxyHost=localhost -Dhttp.proxyPort=8090 ...

    • .Net. The configuration file may be modified as follows:

    <configuration>
    <system.net>
    <defaultProxy>
    <proxy
    usesystemdefault = "false"
    proxyaddress="http://localhost:8090"
    bypassonlocal="true"
    />
    </defaultProxy>
    </system.net>
    </configuration>

  2. Run NeoLoad.
  3. Start a recording (See Record a test scenario). Since the recording does not require a browser, it is recommended to clear the Launch browser option.
  4. Launch your SOAP client application. Since the application has been configured to use the NeoLoad recorder as a proxy, NeoLoad records the request.
  5. Stop the recording.


Home