// Create a Service instance
DMService dmService = new DMService(); //URL и QName внутри
// Extract the SOAP port from the service
DMServicePortType port = dmService.getDMServiceSoap();
BindingProvider bindingProvider = (BindingProvider) port;
String username = "";
String password = "";
String authString = username + ":" + password;
String authHeaderValue = "Basic " + javax.xml.bind.DatatypeConverter.printBase64Binary(authString.getBytes());
Map<String, List<String>> headers = new HashMap<>();
headers.put("Authorization", Collections.singletonList(authHeaderValue));
bindingProvider.getRequestContext().put(MessageContext.HTTP_REQUEST_HEADERS, headers);
DMResponse dmResponse = new ObjectFactory().createExecuteResponse().getReturn();
// Invoke a SOAP operation with the populated request object
try {
dmResponse = port.execute(ConverterUtil.requestDtoToObjectListRequest1c(request));
log.info(String.valueOf(dmResponse.getDataBaseID()));
} catch (WebServiceException e) {
e.printStackTrace();
}