@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.. } }
.addPassword("user").addUserName("pass") .addServerUrl("http://localhost:" + port + "/") .useHttpRedirect() .buildBasicAuthClient(); .addPassword("user").addUserName("pass") .addServerUrl("http://localhost:" + port + "/") .useHttpRedirect() .setWsdlLocationRelativePath(REDIRECT_URL) .buildBasicAuthClient(); .addPassword("user").addUserName("pass") .addServerUrl("http://localhost:" + port + "/") .useHttpRedirect() .setWsdlLocationRelativePath(REDIRECT_PATH) .buildBasicAuthClient(); .addPassword("user").addUserName("pass") .addServerUrl("http://localhost:" + port + "/") .useHttpRedirect() .setWsdlLocationRelativePath(REDIRECT_DOUBLE) .buildBasicAuthClient(); .addPassword("user").addUserName("pass") .addServerUrl("http://localhost:" + port + "/") .useHttpRedirect() .setWsdlLocationRelativePath(REDIRECT_ENDLESS) .buildBasicAuthClient();