Shutdown XML-RPC server from client/test-harness
<p>My problem context is as below:-</p>

<ol>
<li>I have an Apache XMLRPC server implemented on Java using Webserver</li>
<li>A client implemented in Android running on the device/emulator, connecting against the XML-RPC in step 1.</li>
<li>Test cases running on the Android emulator which pass data to the client, which in turn sends it to the server. The server does some comparisons etc. and sends response back to the client which then has logic to say if a test passed/failed.</li>
</ol>

<p>All of this works fine however where I am stuck at the moment is, once I have run all my tests I would like to shutdown the server remotely i.e. through the test-case to Android client route. I can do something like "client.execute("server.shutDown"), which works fine, the only issue is since the server is shut-down it ends up hanging my client on the line "HttpResponse response = client.execute(postMethod);"</p>

<p>Any suggestions would be helpful.</p>

<p>Regards,
Mayank  </p>
