24 Eylül 2018 Pazartesi

remove mustunderstand soap client Axis2

private void removeMustUnderstant(SOAPEnvelope env) {
    QName qName =new javax.xml.namespace.QName(
            "http://ey.webservices.ae/wsrv/common/types",            "MessageHeader",            "typ");    SOAPHeader header = env.getHeader();    OMChildrenQNameIterator childrenWithName = (OMChildrenQNameIterator) header.getChildrenWithName(qName);    while (childrenWithName.hasNext()) {
        org.apache.axiom.om.OMElement omElement = (org.apache.axiom.om.OMElement) childrenWithName.next();        QName mustAnderstandQName = omElement.resolveQName("soapenv:mustUnderstand");        if (mustAnderstandQName == null) {
            continue;        }
        OMAttribute mustAnderstandAttribute = omElement.getAttribute(mustAnderstandQName);        if (mustAnderstandAttribute == null) {
            continue;        }
        omElement.removeAttribute(mustAnderstandAttribute);    }
}

21 Eylül 2018 Cuma

Track all remote branches in git

for remote in `git branch -r | grep -v /HEAD`; do git checkout --track $remote ; done