public final void testFailedCall(String address) throws Exception {
URL url = SOAPService.WSDL_LOCATION;
SOAPService service = new SOAPService(url, SOAPService.SERVICE);
assertNotNull("Service is null", service);
final Greeter port = service.getHttpsPort();
assertNotNull("Port is null", port);
BindingProvider provider = (BindingProvider)port;
provider.getRequestContext().put(
BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
address);
try {
assertEquals(port.greetMe("Kitty"), "Hello Kitty");
fail("Failure expected");
} catch (javax.xml.ws.soap.SOAPFaultException ex) {
// expected
} catch (javax.xml.ws.WebServiceException ex) {
// expected