Package org.apache.xmlbeans

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


        cursor.toNextToken();
        cursor.beginElement(wsdlContext.getSoapVersion().getEnvelopeQName());

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

        cursor.toFirstChild();

        cursor.beginElement(wsdlContext.getSoapVersion().getBodyQName());
View Full Code Here


        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);
        }

        cursor.toFirstChild();
View Full Code Here

        cursor.toNextToken();
        cursor.beginElement(wsdlContext.getSoapVersion().getEnvelopeQName());

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

        cursor.toFirstChild();

        cursor.beginElement(wsdlContext.getSoapVersion().getBodyQName());
View Full Code Here

    public XmlObject constructSequenceClose() {
        XmlObject object = XmlObject.Factory.newInstance();
        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");
View Full Code Here

            cursor.toFirstContentToken();
            cursor.toFirstChild();
            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);
View Full Code Here

                cursor.toParent();
                cursor.toParent();
            }

            cursor.beginElement(WSRM_ACKNOWLEDGMENTS_TO, wsrmNamespace);
            cursor.insertNamespace("wsa", wsaNamespace);
            cursor.beginElement("Address", wsaNamespace);
            if (ackTo == null || ackTo.length() < 1) {
                ackTo = WsaUtils.getNamespace(startSequenceRequest.getWsaConfig().getVersion()) + "/anonymous" + "?id="
                        + uuid;
            }
View Full Code Here

                cursor.toFirstContentToken();
                cursor.toFirstChild();
                cursor.toNextSibling();

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

                cursor.beginElement(WSRM_CLOSE_SEQUENCE, wsrmNamespace);

                cursor.beginElement(WSRM_IDENTIFIER, wsrmNamespace);
                cursor.insertChars(identifier);
View Full Code Here

            cursor.toFirstContentToken();
            cursor.toFirstChild();
            cursor.toNextSibling();

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

            cursor.beginElement("TerminateSequence", wsrmNamespace);
            cursor.beginElement(WSRM_IDENTIFIER, wsrmNamespace);
            cursor.insertChars(identifier);
View Full Code Here

            cursor.toFirstContentToken();
            cursor.toFirstChild();
            cursor.toNextSibling();

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

            cursor.beginElement(WSRM_REQUEST_ACK, wsrmNamespace);

            cursor.beginElement(WSRM_IDENTIFIER, wsrmNamespace);
            cursor.insertChars(identifier);
View Full Code Here

    public XmlObject constructSequenceRequest() {
        XmlObject object = XmlObject.Factory.newInstance();
        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

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.