Package org.apache.xmlbeans

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


            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("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

            cursor.beginElement("Address", wsaNamespace);
            if (ackTo == null || ackTo.length() < 1) {
                ackTo = WsaUtils.getNamespace(startSequenceRequest.getWsaConfig().getVersion()) + "/anonymous" + "?id="
                        + uuid;
            }
            cursor.insertChars(ackTo);
            // cursor.insertChars(request.getWsrmConfig().getAckTo());

            if (expires != 0) {
                cursor.toParent();
View Full Code Here

            if (expires != 0) {
                cursor.toParent();

                cursor.beginElement(WSRM_EXPIRES, wsrmNamespace);
                cursor.insertChars(expires.toString());
            }

            cursor.dispose();

            WsaUtils wsaUtils = new WsaUtils(object.xmlText(), soapVersion, null, new DefaultPropertyExpansionContext(
View Full Code Here

                cursor.insertNamespace("wsrm", wsrmNamespace);

                cursor.beginElement(WSRM_CLOSE_SEQUENCE, wsrmNamespace);

                cursor.beginElement(WSRM_IDENTIFIER, wsrmNamespace);
                cursor.insertChars(identifier);

                cursor.toParent();

                cursor.beginElement(WSRM_LAST_MSG, wsrmNamespace);
                cursor.insertChars(String.valueOf(lastMsgNum));
View Full Code Here

                cursor.insertChars(identifier);

                cursor.toParent();

                cursor.beginElement(WSRM_LAST_MSG, wsrmNamespace);
                cursor.insertChars(String.valueOf(lastMsgNum));
                cursor.dispose();

                WsaUtils wsaUtils = new WsaUtils(object.xmlText(), soapVersion, null, new DefaultPropertyExpansionContext(
                        closeSequenceRequest));
                content = wsaUtils.addWSAddressingRequest(closeSequenceRequest);
View Full Code Here

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

            cursor.beginElement("TerminateSequence", wsrmNamespace);
            cursor.beginElement(WSRM_IDENTIFIER, wsrmNamespace);
            cursor.insertChars(identifier);

            cursor.dispose();

            // startSequenceRequest.getOperation().setAction("");
            // startSequenceRequest.setRequestContent(object.xmlText());
View Full Code Here

            cursor.insertNamespace("wsrm", wsrmNamespace);

            cursor.beginElement(WSRM_REQUEST_ACK, wsrmNamespace);

            cursor.beginElement(WSRM_IDENTIFIER, wsrmNamespace);
            cursor.insertChars(identifier);

            cursor.dispose();

            WsaUtils wsaUtils = new WsaUtils(object.xmlText(), soapVersion, null, new DefaultPropertyExpansionContext(
                    startSequenceRequest));
View Full Code Here

        XmlObject x = XmlObject.Factory.newInstance( options );

        XmlCursor c = x.newCursor();
        c.toNextToken();
        c.insertChars( value );

        return x;
    }

    private static XmlOptions makeInnerOptions(XmlOptions options)
View Full Code Here

        c = x.newCursor();
       
        c.toNextToken();
       
        c.insertChars( "Eric" );

        testTextFrag( x.xmlText(), "Eric" );

        //
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.