Examples of toOMElement()


Examples of org.apache.bsf.xml.XMLHelper.toOMElement()

        // so use the unique name supported by the 1.6R7 version factory.
        ScriptEngine engine = new ScriptEngineManager().getEngineByName("rhino-nonjdk");
        assertNotNull("engine should not be null",engine);
        XMLHelper convertor = XMLHelper.getArgHelper(engine);
        Object o = convertor.toScriptXML(createOMElement("<a><b>petra</b></a>"));
        OMElement om = convertor.toOMElement(o);
        assertEquals("<a><b>petra</b></a>", om.toString());

        Bindings bindings = engine.createBindings();
        bindings.put("o", o);
        Object x = engine.eval("typeof o", bindings);
View Full Code Here

Examples of org.apache.bsf.xml.XMLHelper.toOMElement()

 
  public void testE4X() throws ScriptException, XMLStreamException, FactoryConfigurationError {
        ScriptEngine engine = new ScriptEngineManager().getEngineByExtension("js");
        XMLHelper convertor = XMLHelper.getArgHelper(engine);
        Object o = convertor.toScriptXML(createOMElement("<a><b>petra</b></a>"));
        OMElement om = convertor.toOMElement(o);
        assertEquals("<a><b>petra</b></a>", om.toString());
       
        Bindings bindings = engine.createBindings();
        bindings.put("o", o);
        Object x = engine.eval("typeof o", bindings);
View Full Code Here

Examples of org.apache.sandesha2.wsrm.CreateSequenceResponse.toOMElement()

      }

    }

    SOAPEnvelope envelope = factory.getDefaultEnvelope();
    response.toOMElement(envelope.getBody());
    outMessage.setWSAAction(SpecSpecificConstants.getCreateSequenceResponseAction(SandeshaUtil.getRMVersion(
        newSequenceID, storageManager)));
    outMessage.setSoapAction(SpecSpecificConstants.getCreateSequenceResponseSOAPAction(SandeshaUtil.getRMVersion(
        newSequenceID, storageManager)));
    outMessage.setProperty(AddressingConstants.WS_ADDRESSING_VERSION, addressingNamespaceValue);
View Full Code Here

Examples of org.apache.sandesha2.wsrm.CreateSequenceResponse.toOMElement()

      }

    }

    SOAPEnvelope envelope = factory.getDefaultEnvelope();
    response.toOMElement(envelope.getBody());
    outMessage.setWSAAction(SpecSpecificConstants.getCreateSequenceResponseAction(SandeshaUtil.getRMVersion(newSequenceID,configurationContext)));
    outMessage.setSoapAction(SpecSpecificConstants.getCreateSequenceResponseSOAPAction(SandeshaUtil.getRMVersion(newSequenceID,configurationContext)));
    outMessage.setProperty(AddressingConstants.WS_ADDRESSING_VERSION,addressingNamespaceValue);
   
    String newMessageId = SandeshaUtil.getUUID();
View Full Code Here

Examples of org.apache.sandesha2.wsrm.CreateSequenceResponse.toOMElement()

      }

    }

    SOAPEnvelope envelope = factory.getDefaultEnvelope();
    response.toOMElement(envelope.getBody());
    outMessage
        .setWSAAction(Sandesha2Constants.WSRM.Actions.ACTION_CREATE_SEQUENCE_RESPONSE);
    outMessage
        .setSoapAction(Sandesha2Constants.WSRM.Actions.SOAP_ACTION_CREATE_SEQUENCE_RESPONSE);
View Full Code Here

Examples of org.apache.sandesha2.wsrm.SequenceAcknowledgement.toOMElement()

      }
    }

    applicationMsg.setMessagePart(Sandesha2Constants.MessageParts.SEQ_ACKNOWLEDGEMENT, sequenceAck);

    sequenceAck.toOMElement(envelope.getHeader());
   
    if (applicationMsg.getWSAAction()==null) {
      applicationMsg.setAction(SpecSpecificConstants.getSequenceAcknowledgementAction(SandeshaUtil.getRMVersion(
          sequenceId, storageManager)));
      applicationMsg.setSOAPAction(SpecSpecificConstants.getSequenceAcknowledgementSOAPAction(SandeshaUtil
View Full Code Here

Examples of org.apache.sandesha2.wsrm.SequenceAcknowledgement.toOMElement()

              OMElement ackElement = (OMElement) iter.next();

              SequenceAcknowledgement sequenceAcknowledgement = new SequenceAcknowledgement (Sandesha2Constants.SPEC_NS_URIS[i]);
              sequenceAcknowledgement.fromOMElement(ackElement);
             
              sequenceAcknowledgement.toOMElement(appMsgHeaders);
              acks = true;
            }
          }
        }
       
View Full Code Here

Examples of org.apache.sandesha2.wsrm.SequenceAcknowledgement.toOMElement()

      data.setSubcode(Sandesha2Constants.SOAPFaults.Subcodes.INVALID_ACKNOWLEDGEMENT);
      data.setReason(reason);
     
      SOAPFactory factory = SOAPAbstractFactory.getSOAPFactory(SOAPVersion);
      OMElement dummyElement = factory.createOMElement("dummyElem",null);
      sequenceAcknowledgement.toOMElement(dummyElement);
     
      OMElement sequenceAckElement = dummyElement.getFirstChildWithName(
          new QName (Sandesha2Constants.WSRM_COMMON.SEQUENCE_ACK));
      data.setDetail(sequenceAckElement);
View Full Code Here

Examples of org.apache.sandesha2.wsrm.SequenceAcknowledgement.toOMElement()

      }
    }

    applicationMsg.setMessagePart(Sandesha2Constants.MessageParts.SEQ_ACKNOWLEDGEMENT,sequenceAck);
   
    sequenceAck.toOMElement(envelope.getHeader());
    applicationMsg
        .setAction(SpecSpecificConstants.getSequenceAcknowledgementAction(SandeshaUtil.getRMVersion(sequenceId,ctx)));
    applicationMsg
        .setSOAPAction(SpecSpecificConstants.getSequenceAcknowledgementSOAPAction(SandeshaUtil.getRMVersion(sequenceId,ctx)));
    applicationMsg.setMessageId(SandeshaUtil.getUUID());
View Full Code Here

Examples of org.apache.sandesha2.wsrm.SequenceAcknowledgement.toOMElement()

    while (iterator.hasNext()) {
      AcknowledgementRange ackRange = (AcknowledgementRange) iterator.next();
      sequenceAck.addAcknowledgementRanges(ackRange);
    }

    sequenceAck.toOMElement(envelope.getHeader());
    applicationMsg
        .setAction(Sandesha2Constants.WSRM.Actions.ACTION_SEQUENCE_ACKNOWLEDGEMENT);
    applicationMsg
        .setSOAPAction(Sandesha2Constants.WSRM.Actions.SOAP_ACTION_SEQUENCE_ACKNOWLEDGEMENT);
    applicationMsg.setMessageId(SandeshaUtil.getUUID());
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.