96979899100101102103104105106
if (obj != null) { if (obj instanceof Closeable) { ((Closeable)obj).close(); } else { Client c = ClientProxy.getClient(obj); c.destroy(); } obj = null; } } }
132133134135136137138139140141142
186187188189190191192193194195
fail("Expected failure on bob"); } catch (Exception ex) { assertTrue(ex.getMessage().contains("This is a fault")); } client.destroy(); } }
116117118119120121122123124125126
http.setClient(httpClientPolicy); final String output = port.echo(INPUT); assertEquals(INPUT, output); cl.destroy(); } bus.shutdown(true); }
173174175176177178179180181182183
http.setClient(httpClientPolicy); String output = port.echo(INPUT); assertEquals(INPUT, output); cl.destroy(); } private static URL getWsdlLocation(String portPrefix, String port) { try { if ("UserNameOverTransport".equals(portPrefix)) {
4344454647484950515253
URL wsdl = getClass().getResource("/wsdl/others/dynamic_client_base64.wsdl"); String wsdlUrl = null; wsdlUrl = wsdl.toURI().toString(); DynamicClientFactory dynamicClientFactory = DynamicClientFactory.newInstance(bus); Client client = dynamicClientFactory.createClient(wsdlUrl); client.destroy(); } /** * @param args * @throws URISyntaxException */