// Sending the request, checking the reply:
try {
Response resp = sendCall.invoke(serviceUrl,"");
// Check the response.
if (resp.generatedFault ()) {
throw new IllegalStateException("The SOAP service failed to process"
+ " the call: "
+ resp.getFault().getFaultString());
}
} catch (SOAPException exc) {