@Test public void commandWebServiceClientInterfaceInheritanceTest() { try { RemoteRuntimeEngineFactory.newCommandWebServiceClientBuilder() .addPassword("test") .addUserName("tester") .addServerUrl("http://test.server.com/test-app/") .addServerUrl(new URL("http://test.server.com/test-app/")) .setWsdlLocationRelativePath("random/path/to/CommandWebservice.wsdl") .addPassword("test") .addUserName("tester") .addServerUrl("http://test.server.com/test-app/") .addServerUrl(new URL("http://test.server.com/test-app/")) .setWsdlLocationRelativePath("random/path/to/CommandWebservice.wsdl") .useHttpRedirect() .addPassword("test") .addUserName("tester") .addServerUrl("http://test.server.com/test-app/") .addServerUrl(new URL("http://test.server.com/test-app/")) .buildBasicAuthClient(); } catch( Exception e ) { logger.info("The " + ConnectException.class.getSimpleName() + " above is expected, nothing is wrong."); // the above just needs to compile.. } }
private CommandWebService createClient(String user, String password) throws Exception { return RemoteRuntimeEngineFactory.newCommandWebServiceClientBuilder() .addUserName(user).addPassword(password) .addServerUrl("http://localhost:" + port + "/") .setWsdlLocationRelativePath(DEFAULT_ENDPOINT) .buildBasicAuthClient(); }
.addPassword("user").addUserName("pass") .addServerUrl("http://localhost:" + port + "/") .setWsdlLocationRelativePath(REAL_ENDPOINT_PATH) .addPassword("user").addUserName("pass") .addServerUrl("http://localhost:" + port + "/") .setWsdlLocationRelativePath("/redirect/url") .addPassword("user").addUserName("pass") .addServerUrl("http://localhost:" + port + "/") .useHttpRedirect() .addPassword("user").addUserName("pass") .addServerUrl("http://localhost:" + port + "/") .useHttpRedirect() .addPassword("user").addUserName("pass") .addServerUrl("http://localhost:" + port + "/") .useHttpRedirect() .addPassword("user").addUserName("pass") .addServerUrl("http://localhost:" + port + "/") .useHttpRedirect() .addPassword("user").addUserName("pass") .addServerUrl("http://localhost:" + port + "/") .useHttpRedirect() .addPassword("user").addUserName("pass")