ApiServiceSoapBindingStub api; try { ApiServiceServiceLocator locator = new ApiServiceServiceLocator(); // Use the line below to change the Service EndPoint address. // Replace 192.168.24.213 with the IP address of the voyence control // server you are connecting to. locator.setApiServiceEndpointAddress( "https://192.168.24.213:8880/Api/services/ApiService"); api = (ApiServiceSoapBindingStub) locator.getApiService(); } catch (ServiceException jre) { if (jre.getLinkedCause() != null) { jre.getLinkedCause().printStackTrace(); } throw jre; }