Package org.openeai.xml

Examples of org.openeai.xml.XmlDocumentReader


      outMessage.setStringProperty(MessageProducer.MESSAGE_ID, theObject.getMessageId().toString());
      TextMessage responseMessage = (TextMessage)produceRequest(outMessage);
      String responseText = responseMessage.getText();
      logger.debug("Got response:\n" + responseText);
      try {
        XmlDocumentReader xmlReader = new XmlDocumentReader();
        responseDoc = xmlReader.initializeDocument(new ByteArrayInputStream(responseText.getBytes()), theObject.getValidation());
      }
       catch (XmlDocumentReaderException e) {
        logger.fatal("Error parsing Standard Response document.  Contents: " + responseText);
        throw new TransportException("Standard Response document is not valid!  Exception: " + e.getMessage(), e);
       }
View Full Code Here


      throw new InstantiationException(errMsg);
    }
    setProperties(pConfig.getProperties());
   
    // Initialize response document.
    XmlDocumentReader xmlReader = new XmlDocumentReader();
    try {
      logger.debug("[MockAddressValidationRequestCommand] " +
          "responseDocumentUri: " + getProperties()
          .getProperty("responseDocumentUri"));
      m_responseDoc = xmlReader.initializeDocument(getProperties()
          .getProperty("responseDocumentUri"), getOutboundXmlValidation());
      if (m_responseDoc == null) {
        String errMsg = "Missing 'responseDocumentUri' " +
        "property in the deployment descriptor.  Can't continue.";
        logger.fatal("[MockAddressValidationRequestCommand] " + errMsg);
View Full Code Here

      throw new InstantiationException(errMsg);
    }
    setProperties(pConfig.getProperties());

    // Initialize response and provide documents.
    XmlDocumentReader xmlReader = new XmlDocumentReader();
    try {
      logger.debug("[I2sRequestCommand] " +
        "responseDocumentUri: " + getProperties()
        .getProperty("responseDocumentUri"));
      m_responseDoc = xmlReader.initializeDocument(getProperties()
        .getProperty("responseDocumentUri"), getOutboundXmlValidation());
      if (m_responseDoc == null) {
        String errMsg = "Missing 'responseDocumentUri' " +
          "property in the deployment descriptor.  Can't continue.";
        logger.fatal("[I2sRequestCommand] " + errMsg);
        throw new InstantiationException(errMsg);
      }
      logger.debug("[I2sRequestCommand] " +
        "provideDocumentUri: " + getProperties()
        .getProperty("provideDocumentUri"));
      m_provideDoc = xmlReader.initializeDocument(getProperties()
        .getProperty("provideDocumentUri"), getOutboundXmlValidation());
      if (m_provideDoc == null) {
        String errMsg = "Missing 'provideDocumentUri' " +
          "property in the deployment descriptor.  Can't continue.";
        logger.fatal("[I2sRequestCommand] " + errMsg);
View Full Code Here

      throw new InstantiationException(errMsg);
    }
    setProperties(pConfig.getProperties());

    // Initialize the response document.
    XmlDocumentReader xmlReader = new XmlDocumentReader();
    try {
      m_responseDoc = xmlReader.initializeDocument(getProperties()
        .getProperty("responseDocumentUri"), getOutboundXmlValidation());
      if (m_responseDoc == null) {
        throw new InstantiationException("Missing 'responseDocumentUri' " +
          "property in the deployment descriptor.  Can't continue.");
      }
View Full Code Here

      throw new InstantiationException(errMsg);
    }

   
    // Initialize response document.
    XmlDocumentReader xmlReader = new XmlDocumentReader();
    try {
      logger.debug("[PasswordValidationRequestCommand] " +
          "responseDocumentUri: " + getProperties()
          .getProperty("responseDocumentUri"));
      m_responseDoc = xmlReader.initializeDocument(getProperties()
          .getProperty("responseDocumentUri"), getOutboundXmlValidation());
      if (m_responseDoc == null) {
        String errMsg = "Missing 'responseDocumentUri' " +
        "property in the deployment descriptor.  Can't continue.";
        logger.fatal("[PasswordValidationRequestCommand] " + errMsg);
View Full Code Here

TOP

Related Classes of org.openeai.xml.XmlDocumentReader

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.