Package org.servicemix.ws.xmlbeans.rm

Examples of org.servicemix.ws.xmlbeans.rm.AckRequestedType


       
        return resultDoc;
    }

    public SequenceAcknowledgementDocument acknowledgeRequested(AckRequestedDocument doc) {
        AckRequestedType sequence = doc.getAckRequested();
        String identifier = sequence.getIdentifier().getStringValue();
        Sequence s = sequenceStore.retrieve(identifier);
       
        if( s == null ) {
            throw new SoapFault(
                    "The value of wsrm:Identifier is not a known Sequence identifier",
                    "Sender",
                    "wsrm:UnknownSequence",
                    sequence.getIdentifier().xmlText());
        }
       
        SequenceAcknowledgementDocument resultDoc = SequenceAcknowledgementDocument.Factory.newInstance();
        SequenceAcknowledgement acknowledgement = resultDoc.addNewSequenceAcknowledgement();
        acknowledgement.setIdentifier(sequence.getIdentifier());
        if( s.lastMessageAcked> 0 ) {
            AcknowledgementRange range = acknowledgement.addNewAcknowledgementRange();
            range.setLower(BigInteger.ONE);
            range.setUpper(new BigInteger(""+s.lastMessageAcked));
        }
View Full Code Here

TOP

Related Classes of org.servicemix.ws.xmlbeans.rm.AckRequestedType

Copyright © 2018 www.massapicom. 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.