Examples of GetCurrentMessage


Examples of axis.com.ibm.www.xmlns.stdwip.web_services.WS_BaseNotification.GetCurrentMessage

      //validate the incoming notification is really in there!
      validateNotificationMessage( incomingMessage );

      // Call GetCurrentMessage to assure that the BadSector message is available.
      GetCurrentMessage  request = new GetCurrentMessage(  );
      TopicExpressionType topic = new TopicExpressionType(  );
      topic.setDialect( new URI( TopicsConstants.DIALECT_TOPIC_EXPRESSION_SIMPLE ) );
      topic.set_any( this.buildTopicExpressionTypeAny( badSectorQName ) );
      request.setTopic( topic );
      GetCurrentMessageResponse messageResponse = m_stub.getCurrentMessage( request );
      assertNotNull( messageResponse );
      MessageElement[] responseElements = messageResponse.get_any(  );
      assertNotNull( responseElements );
      assertNotNull( responseElements[0] );
View Full Code Here

Examples of axis.com.ibm.www.xmlns.stdwip.web_services.WS_BaseNotification.GetCurrentMessage

      //validate the incoming notification is really in there!
      validateNotificationMessage( incomingMessage );

      // Call GetCurrentMessage to assure that the BlockSize message is available.
      GetCurrentMessage  request = new GetCurrentMessage(  );
      TopicExpressionType topic = new TopicExpressionType(  );
      topic.setDialect( new URI( TopicsConstants.DIALECT_TOPIC_EXPRESSION_SIMPLE ) );
      topic.set_any( this.buildTopicExpressionTypeAny( ExampleConstants.RESOURCE_PROP_QNAME_BLOCK_SIZE ) );
      request.setTopic( topic );
      GetCurrentMessageResponse messageResponse = m_stub.getCurrentMessage( request );
      assertNotNull( messageResponse );
      MessageElement[] responseElements = messageResponse.get_any(  );
      assertNotNull( responseElements );
      assertNotNull( responseElements[0] );
View Full Code Here

Examples of org.apache.muse.ws.notification.impl.GetCurrentMessage

    }
   
    public NotificationMessage getCurrentMessage(QName topicPath)
        throws SoapFault
    {
        GetCurrentMessage get = new GetCurrentMessage(topicPath);
       
        Element responseXML = invoke(WsnConstants.GET_CURRENT_URI, get.toXML());
       
        GetCurrentMessageResponse response = new GetCurrentMessageResponse(responseXML);
        return response.getMessage();
    }
View Full Code Here

Examples of org.oasis_open.docs.wsn.b_2.GetCurrentMessage

        SubscribeResponse response = (SubscribeResponse) request(subscribeRequest);
        return new Subscription(response.getSubscriptionReference(), getClient());
    }

    public List<Object> getCurrentMessage(String topic) throws JBIException {
        GetCurrentMessage getCurrentMessageRequest = new GetCurrentMessage();
        if (topic != null) {
            TopicExpressionType topicExp = new TopicExpressionType();
            topicExp.getContent().add(topic);
            getCurrentMessageRequest.setTopic(topicExp);
        }
        GetCurrentMessageResponse response = (GetCurrentMessageResponse) request(getCurrentMessageRequest);
        return response.getAny();
    }
View Full Code Here

Examples of org.oasis_open.docs.wsn.b_2.GetCurrentMessage

    public List<Object> getCurrentMessage(String topic)
        //CHECKSTYLE:OFF - WS-Notification spec throws a lot of faults
        throws TopicNotSupportedFault, TopicExpressionDialectUnknownFault, MultipleTopicsSpecifiedFault,
        InvalidTopicExpressionFault, ResourceUnknownFault, NoCurrentMessageOnTopicFault {
        //CHECKSTYLE:ON
        GetCurrentMessage getCurrentMessageRequest = new GetCurrentMessage();
        if (topic != null) {
            TopicExpressionType topicExp = new TopicExpressionType();
            topicExp.getContent().add(topic);
            getCurrentMessageRequest.setTopic(topicExp);
        }
        GetCurrentMessageResponse response = broker.getCurrentMessage(getCurrentMessageRequest);
        return response.getAny();
    }
View Full Code Here

Examples of org.oasis_open.docs.wsn.b_2.GetCurrentMessage

    SubscribeResponse response = (SubscribeResponse) request(subscribeRequest);
    return new Subscription(response.getSubscriptionReference(), getClient());
  }

  public List<Object> getCurrentMessage(String topic) throws JBIException {
    GetCurrentMessage getCurrentMessageRequest = new GetCurrentMessage();
    if (topic != null) {
      TopicExpressionType topicExp = new TopicExpressionType();
      topicExp.getContent().add(topic);
      getCurrentMessageRequest.setTopic(topicExp);
    }
    GetCurrentMessageResponse response = (GetCurrentMessageResponse) request(getCurrentMessageRequest);
    return response.getAny();
  }
View Full Code Here

Examples of org.oasis_open.docs.wsn.b_2.GetCurrentMessage

    public List<Object> getCurrentMessage(String topic)
        //CHECKSTYLE:OFF - WS-Notification spec throws a lot of faults
        throws TopicNotSupportedFault, TopicExpressionDialectUnknownFault, MultipleTopicsSpecifiedFault,
        InvalidTopicExpressionFault, ResourceUnknownFault, NoCurrentMessageOnTopicFault {
        //CHECKSTYLE:ON
        GetCurrentMessage getCurrentMessageRequest = new GetCurrentMessage();
        if (topic != null) {
            TopicExpressionType topicExp = new TopicExpressionType();
            topicExp.getContent().add(topic);
            getCurrentMessageRequest.setTopic(topicExp);
        }
        GetCurrentMessageResponse response = getBroker().getCurrentMessage(getCurrentMessageRequest);
        return response.getAny();
    }
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.