SOAPConnectionFactory sfc = SOAPConnectionFactory.newInstance();
SOAPConnection connection = sfc.createConnection();
//somewhere here I think I must inform admin login/password... but don't know how...
MessageFactory mf = MessageFactory.newInstance();
SOAPMessage sm = mf.createMessage();
SOAPHeader sh = sm.getSOAPHeader();
SOAPBody sb = sm.getSOAPBody();
sh.detachNode();
QName bodyName = new QName("urn:zimbraAdmin", "GetAccountRequest", "");
SOAPBodyElement bodyElement = sb.addBodyElement(bodyName);
QName qn = new QName("account");
SOAPElement nameElementValue = bodyElement.addChildElement(qn);
Name n=sm.getSOAPPart().getEnvelope().createName("by");
nameElementValue.addAttribute(n, "name");
nameElementValue.addTextNode("user@host");
SOAPElement quotation = bodyElement.addChildElement(qn);
System.out.println("\n Soap Request:\n");
sm.writeTo(System.out);
System.out.println();
URL endpoint = new URL("https://server_adress

ortNumber/service/admin/soap/");
SOAPMessage response = connection.call(sm, endpoint);
System.out.println(response.getContentDescription( ));