Package org.apache.xmlbeans

Examples of org.apache.xmlbeans.XmlCursor.beginElement()


            Part part = inputParts[i];
            if (WsdlUtils.isAttachmentOutputPart(part, bindingOperation)) {
                if (iface.getSettings().getBoolean(WsdlSettings.ATTACHMENT_PARTS)) {
                    XmlCursor c = cursor.newCursor();
                    c.toLastChild();
                    c.beginElement(part.getName());
                    c.insertAttributeWithValue("href", part.getName() + "Attachment");
                    c.dispose();
                }
            } else {
                if (wsdlContext.hasSchemaTypes()) {
View Full Code Here


        xmlGenerator.setMultiValues(multiValues);

        XmlObject object = XmlObject.Factory.newInstance();
        XmlCursor cursor = object.newCursor();
        cursor.toNextToken();
        cursor.beginElement(wsdlContext.getSoapVersion().getEnvelopeQName());

        if (inputSoapEncoded) {
            cursor.insertNamespace("xsi", Constants.XSI_NS);
            cursor.insertNamespace("xsd", Constants.XSD_NS);
        }
View Full Code Here

            cursor.insertNamespace("xsd", Constants.XSD_NS);
        }

        cursor.toFirstChild();

        cursor.beginElement(wsdlContext.getSoapVersion().getBodyQName());
        cursor.toFirstChild();

        if (WsdlUtils.isRpc(wsdlContext.getDefinition(), bindingOperation)) {
            buildRpcResponse(bindingOperation, cursor, xmlGenerator);
        } else {
View Full Code Here

        XmlCursor cursor = object.newCursor();
        // cursor.toNextToken();

        cursor.insertNamespace("wsrm", wsrmConfig.getVersionNameSpace());

        cursor.beginElement(WSRM_CREATE_SEQUENCE, wsrmConfig.getVersionNameSpace());
        cursor.insertElementWithText(WSRM_ACKNOWLEDGMENTS_TO, wsrmConfig.getAckTo());
        if (wsrmConfig.getSequenceExpires() != null) {
            cursor.insertElementWithText(WSRM_EXPIRES, wsrmConfig.getSequenceExpires().toString());
        }
View Full Code Here

        XmlCursor cursor = object.newCursor();
        cursor.toNextToken();

        cursor.insertNamespace("wsrm", wsrmConfig.getVersionNameSpace());

        cursor.beginElement(WSRM_CLOSE_SEQUENCE, wsrmConfig.getVersionNameSpace());
        cursor.insertElementWithText(WSRM_IDENTIFIER, wsrmConfig.getSequenceIdentifier());
        // For a request, there will always be one message
        cursor.insertElementWithText(WSRM_LAST_MESSAGE, "1");

        cursor.dispose();
View Full Code Here

            cursor.toNextSibling();

            cursor.toNextToken();
            cursor.insertNamespace("wsrm", wsrmNamespace);

            cursor.beginElement(WSRM_CREATE_SEQUENCE, wsrmNamespace);
            String wsaNamespace = wsrmNamespace.equals(WSRM_NS_1_0) ? WsaUtils.WS_A_NAMESPACE_200408 : WsaUtils.WS_A_NAMESPACE_200508;
            if (!wsrmNamespace.equals(WSRM_NS_1_0) && !StringUtils.isNullOrEmpty(offerEndpoint)) {
                cursor.beginElement("Offer", wsrmNamespace);

                cursor.beginElement("Endpoint", wsrmNamespace);
View Full Code Here

            cursor.insertNamespace("wsrm", wsrmNamespace);

            cursor.beginElement(WSRM_CREATE_SEQUENCE, wsrmNamespace);
            String wsaNamespace = wsrmNamespace.equals(WSRM_NS_1_0) ? WsaUtils.WS_A_NAMESPACE_200408 : WsaUtils.WS_A_NAMESPACE_200508;
            if (!wsrmNamespace.equals(WSRM_NS_1_0) && !StringUtils.isNullOrEmpty(offerEndpoint)) {
                cursor.beginElement("Offer", wsrmNamespace);

                cursor.beginElement("Endpoint", wsrmNamespace);
                cursor.beginElement("Address", wsaNamespace);
                cursor.insertChars(offerEndpoint);
                cursor.toParent();
View Full Code Here

            cursor.beginElement(WSRM_CREATE_SEQUENCE, wsrmNamespace);
            String wsaNamespace = wsrmNamespace.equals(WSRM_NS_1_0) ? WsaUtils.WS_A_NAMESPACE_200408 : WsaUtils.WS_A_NAMESPACE_200508;
            if (!wsrmNamespace.equals(WSRM_NS_1_0) && !StringUtils.isNullOrEmpty(offerEndpoint)) {
                cursor.beginElement("Offer", wsrmNamespace);

                cursor.beginElement("Endpoint", wsrmNamespace);
                cursor.beginElement("Address", wsaNamespace);
                cursor.insertChars(offerEndpoint);
                cursor.toParent();
                cursor.toParent();
                cursor.beginElement("Identifier", wsrmNamespace);
View Full Code Here

            String wsaNamespace = wsrmNamespace.equals(WSRM_NS_1_0) ? WsaUtils.WS_A_NAMESPACE_200408 : WsaUtils.WS_A_NAMESPACE_200508;
            if (!wsrmNamespace.equals(WSRM_NS_1_0) && !StringUtils.isNullOrEmpty(offerEndpoint)) {
                cursor.beginElement("Offer", wsrmNamespace);

                cursor.beginElement("Endpoint", wsrmNamespace);
                cursor.beginElement("Address", wsaNamespace);
                cursor.insertChars(offerEndpoint);
                cursor.toParent();
                cursor.toParent();
                cursor.beginElement("Identifier", wsrmNamespace);
                cursor.insertChars("urn:soapui:" + uuid);
View Full Code Here

                cursor.beginElement("Endpoint", wsrmNamespace);
                cursor.beginElement("Address", wsaNamespace);
                cursor.insertChars(offerEndpoint);
                cursor.toParent();
                cursor.toParent();
                cursor.beginElement("Identifier", wsrmNamespace);
                cursor.insertChars("urn:soapui:" + uuid);

                cursor.toParent();
                cursor.toParent();
            }
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.