Examples of NotifyDocument


Examples of com.ibm.xmlns.stdwip.webServices.wsBaseNotification.NotifyDocument

   {
      SOAPElement retNotificationBody;

      if ( useNotify )
      {
         NotifyDocument                notifyDocument   = NotifyDocument.Factory.newInstance(  );
         NotifyDocument.Notify         notify           = notifyDocument.addNewNotify(  );
         NotificationMessageHolderType holder           = notify.addNewNotificationMessage(  );
         XmlObject                     messageXmlObject = XmlBeansUtils.toXmlObject( message );

         holder.setMessage( messageXmlObject );
         holder.setProducerReference( AddressingUtils.getXLMBeanEPR( m_owner.getEndpointReference(  ) ) );
View Full Code Here

Examples of com.ibm.xmlns.stdwip.webServices.wsBaseNotification.NotifyDocument

      String xml = messageText.substring( mBegintag.start(  ),
                                          mEndtag.end(  ) );

      //attempt to build a NotifyDocument to get at the Notify and validate
      NotifyDocument                  notifyDoc                = NotifyDocument.Factory.parse( xml );
      NotifyDocument.Notify           notify                   = notifyDoc.getNotify(  );
      NotificationMessageHolderType[] notificationMessageArray = notify.getNotificationMessageArray(  );

      for ( int i = 0; i < notificationMessageArray.length; i++ )
      {
         NotificationMessageHolderType notificationMessageHolderType = notificationMessageArray[i];
View Full Code Here

Examples of org.activemq.ws.xmlbeans.notification.base.NotifyDocument

        };

        addSubscription(broker);
        sendNotification(broker);

        NotifyDocument subNotifyDoc = (NotifyDocument) service.getResult().poll(2000);
        System.out.println("Got Notify: "+subNotifyDoc);
       
        assertValidMessage(subNotifyDoc);
    }
View Full Code Here

Examples of org.activemq.ws.xmlbeans.notification.base.NotifyDocument

        ActiveMQConnection connection = broker.getConnection();
        Session session = connection.createSession(false, 0);
        ActiveMQTopic topic = new ActiveMQTopic("Test");
        MessageConsumer consumer = session.createConsumer(topic);
       
        NotifyDocument request = NotifyDocument.Factory.newInstance();
        Notify notify = request.addNewNotify();
        NotificationMessageHolderType messageHolder = notify.addNewNotificationMessage();
        messageHolder.setTopic( TopicExpressionConverter.toTopicExpression(topic) );
        XmlObject o = createMessage();
        messageHolder.setMessage(o);
       
View Full Code Here

Examples of org.activemq.ws.xmlbeans.notification.base.NotifyDocument

        };

        addSubscription(broker);
        sendNotification(broker);

        NotifyDocument subNotifyDoc = (NotifyDocument) result.poll(2000);
        System.out.println("Got Notify: "+subNotifyDoc);

        assertValidMessage(subNotifyDoc);
    }
View Full Code Here

Examples of org.activemq.ws.xmlbeans.notification.base.NotifyDocument

        EndpointReferenceType subRef = addSubscription(broker);
       
        // The sub should be running and we should be getting notifed now.
        sendNotification(broker);
        NotifyDocument subNotifyDoc = (NotifyDocument) result.poll(2000);
        assertNotNull(subNotifyDoc);
       
        // Pause the subscription.
        PauseSubscriptionDocument pauseRequest = PauseSubscriptionDocument.Factory.newInstance();
        pauseRequest.addNewPauseSubscription();
View Full Code Here

Examples of org.activemq.ws.xmlbeans.notification.base.NotifyDocument

        return subresponse.getSubscribeResponse().getSubscriptionReference();
    }
   
    protected void sendNotification(ActiveMQNotificationBroker broker) {
        // START SNIPPET: notify
        NotifyDocument request = NotifyDocument.Factory.newInstance();
        NotifyDocument.Notify notify = request.addNewNotify();
        NotificationMessageHolderType messageHolder = notify.addNewNotificationMessage();
        messageHolder.setTopic( TopicExpressionConverter.toTopicExpression(topic) );

        // create some XMLBean for the payload
        XmlObject o = createMessage();
View Full Code Here

Examples of org.activemq.ws.xmlbeans.notification.base.NotifyDocument

        notificationConsumer = consumer;
       
    }

    private void dispatch(TopicExpressionType topic, XmlObject xml) {
        NotifyDocument request = NotifyDocument.Factory.newInstance();
        Notify notify = request.addNewNotify();
        NotificationMessageHolderType messageHolder = notify.addNewNotificationMessage();
        if( producerReference!=null )
            messageHolder.setProducerReference((EndpointReferenceType) producerReference.copy());
        messageHolder.setTopic(topic);
        messageHolder.setMessage(xml);
View Full Code Here

Examples of org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.NotifyDocument

         {*/
      SubscriptionTopicListener   lis     = new SubscriptionTopicListener( sub );
      AnyResourcePropertyMetaData anyMeta = new AnyResourcePropertyMetaData( new QName( "foo" ) );

      //need some sort of documenttype
      NotifyDocument                       doc         = NotifyDocument.Factory.newInstance(  );
      XmlBeansResourcePropertySet          set         = new XmlBeansResourcePropertySet( doc );
      XmlBeansResourceProperty             prop        = new XmlBeansResourceProperty( anyMeta, set );
      ResourcePropertyValueChangeTopicImpl topic       = new ResourcePropertyValueChangeTopicImpl( prop );
      TopicListenerTestObj                 testListenr = new TopicListenerTestObj(  );
      topic.addTopicListener( testListenr );
View Full Code Here

Examples of org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.NotifyDocument

      return dom;
   }

   private XmlObject wrapMessageWithNotify( XmlObject msg )
   {
      NotifyDocument                notifyDoc      = NotifyDocument.Factory.newInstance(  );
      NotifyDocument.Notify         notify         = notifyDoc.addNewNotify(  );
      NotificationMessageHolderType notifMsgHolder = notify.addNewNotificationMessage(  );
      notifMsgHolder.setMessage( msg );
      EndpointReference         producerEPR       =
         m_subscription.getProducerResource(  ).getEndpointReference(  );
      XmlBeansEndpointReference xBeansProducerEPR = ( (XmlBeansEndpointReference) producerEPR );
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.