Package org.apache.axiom.om

Examples of org.apache.axiom.om.OMElement.detach()


            if (operationDescription != null) {
                OperationDescriptionSerializer.serializeToServiceXML(
                        opElement, operationDescription, xPathSerializer);
                addedOpNames.add(name);
            } else {
                opElement.detach();
            }
        }
        // adding new operations
        Iterator<OperationDescription> operations = description.getOperationDescriptions();
        while (operations.hasNext()) {
View Full Code Here


                if (text != null) {
                    contentBytes = Base64.decode(text.getText());
                }
                String md5 = Utils.getMD5(contentBytes);
                root.addAttribute("md5", md5, null);
                child.detach();
            }
        }

        if (!isCollection && overwrite) {
            try {
View Full Code Here

                if (text != null) {
                    contentBytes = Base64.decode(text.getText());
                }
                updatingMD5 = Utils.getMD5(contentBytes);
                root.addAttribute("md5", updatingMD5, null);
                child.detach();
            }
        }

        // access the meta info of the current
        String metaFilePath;
View Full Code Here

            if (child.getQName().equals(PARAMETER_Q)) {
                OMAttribute paramNameAttr = child.getAttribute(ATT_NAME);
                if (paramNameAttr != null) {
                    paramNames.add(paramNameAttr.getAttributeValue());
                }
                child.detach();
            }
        }
        this.setParameters(paramNames);
    }
View Full Code Here

                WSDL2FormServiceComponent.getConfigurationContextService().getClientConfigContext();
        //Create ServiceClient with deafult config context.
        ServiceClient client = new ServiceClient(configCtx, null);
        OMElement element = env.getBody().getFirstElement();
        if (element != null) {
            element.detach();
        }
        Options options = new Options();
        options.setTo(new EndpointReference(endpoint.getEndpointURL()));
        options.setAction(inMessage.getWSAAction());
        options.setSoapVersionURI(env.getNamespace().getNamespaceURI());
View Full Code Here

                } else if (isSoapBody) {
                    for (Iterator itr = synCtx.getEnvelope().getBody().getChildElements();
                        itr.hasNext(); ) {
                        OMElement child = (OMElement) itr.next();
                        child.detach();
                    }

                    for (Iterator itr = result.getChildElements(); itr.hasNext(); ) {
                        OMElement child = (OMElement) itr.next();
                        synCtx.getEnvelope().getBody().addChild(child);
View Full Code Here

    protected void removeSessionID(OMElement header, QName keyQName) {

        OMElement sgcIDElm = getHeaderBlock(header, keyQName);
        if (sgcIDElm != null) {
            sgcIDElm.detach();
        }
    }


    private Map getTransportHeaderMap(MessageContext synCtx) {
View Full Code Here

        if (targetNode instanceof SOAPBody) {
            ((SOAPBody) targetNode).addChild((OMNode) value);
        } else if (targetNode instanceof OMElement) {
            OMElement targetOMNode = (OMElement) targetNode;
            targetOMNode.insertSiblingAfter((OMNode) value);
            targetOMNode.detach();
            return true;
        }
        return false;
    }
View Full Code Here

        if (targetNode instanceof OMElement) {
            OMElement targetOMNode = (OMElement) targetNode;
            targetOMNode.insertSiblingAfter(ElementHelper.importOMElement(
                    (OMElement) value, OMAbstractFactory.getOMFactory()));
            targetOMNode.detach();
            return true;
        }
        return false;
    }
View Full Code Here

     * @return a <code>RuleServiceDescription</code> instance
     */
    private ServiceDescription createRuleServiceDescription(InputStream inputStream) {
        try {
            OMElement omElement = OM_ELEMENT_HELPER.toOM(inputStream);
            omElement.detach();
            return ServiceDescriptionFactory.create(omElement,
                    AXIOM_XPATH_FACTORY, deployerInformation.getExtensionBuilder());
        } finally {
            if (inputStream != null) {
                try {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.