Examples of addNewSubscribe()


Examples of org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeDocument.addNewSubscribe()

   }

   private XmlBeansEndpointReference subscribe( boolean isWrapped )
   {
      SubscribeDocument           requestDoc = SubscribeDocument.Factory.newInstance(  );
      SubscribeDocument.Subscribe subscribe = requestDoc.addNewSubscribe(  );
      subscribe.setUseNotify( true );
      Calendar instance = Calendar.getInstance(  );
      instance.setTimeInMillis( instance.getTimeInMillis(  ) + 20000 );
      subscribe.setInitialTerminationTime( instance );
      org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceType consumerRef =
View Full Code Here

Examples of org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeDocument.addNewSubscribe()

                                                       XPathFilter             xf,
                                                       Calendar                initialTerminationTime,
                                                       boolean                 UseNotify )
   {
      SubscribeDocument           sdom = SubscribeDocument.Factory.newInstance(  );
      SubscribeDocument.Subscribe s = sdom.addNewSubscribe(  );

      //subscription ends are send to:
      //TODO
      //notifications are send to:
      s.setConsumerReference( (org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceType) ( (XmlObjectWrapper) notificationConsumer
View Full Code Here

Examples of org.servicemix.ws.xmlbeans.notification.base.SubscribeDocument.addNewSubscribe()

    protected EndpointReferenceType addSubscription(ActiveMQNotificationBroker broker) {
        // Create a subscription

        // START SNIPPET: subscribe
        SubscribeDocument subrequest = SubscribeDocument.Factory.newInstance();
        SubscribeDocument.Subscribe subscribe = subrequest.addNewSubscribe();
        subscribe.setTopicExpression( TopicExpressionConverter.toTopicExpression(topic) );
        subscribe.setUseNotify(true);
        SubscribeResponseDocument subresponse = broker.Subscribe(subrequest);
        // END SNIPPET: subscribe
View Full Code Here

Examples of org.servicemix.ws.xmlbeans.notification.base.SubscribeDocument.addNewSubscribe()

   
    protected void fireDemandChangeEvent(boolean inDemand) {
        NotificationProducer p = createPublisherNotificationProducer();
        if( inDemand ) {
            SubscribeDocument requestDoc = SubscribeDocument.Factory.newInstance();
            Subscribe subscribe = requestDoc.addNewSubscribe();
            subscribe.setTopicExpression( TopicExpressionConverter.toTopicExpression(topic) );
            subscribe.setUseNotify(true);
            subscribe.setConsumerReference(endpointReference);
            SubscribeResponseDocument reponse = p.Subscribe(requestDoc);
        } else {
View Full Code Here

Examples of org.xmlsoap.schemas.ws.x2004.x08.eventing.SubscribeDocument.addNewSubscribe()

      Subscription ls = this.sH.create(  );
      ls.setNotificationConsumer( notificationConsumer );
      ls.setSubscriptionEndConsumer( subscriptionEndConsumer );

      SubscribeDocument           sdom = SubscribeDocument.Factory.newInstance(  );
      SubscribeDocument.Subscribe s = sdom.addNewSubscribe(  );

      //create notifyTo EPR
      EndpointReferenceType nepr =
         (EndpointReferenceType) ( (XmlObjectWrapper) notificationConsumer.getEPR(  ) ).getXmlObject(  );
View Full Code Here

Examples of org.xmlsoap.schemas.ws.x2004.x08.eventing.SubscribeDocument.addNewSubscribe()

        Subscription ls = this.sH.create();
        ls.setNotificationConsumer(notificationConsumer);
        ls.setSubscriptionEndConsumer(subscriptionEndConsumer);
       
        SubscribeDocument sdom = SubscribeDocument.Factory.newInstance();
        SubscribeDocument.Subscribe s = sdom.addNewSubscribe();
       
        //create notifyTo EPR
        EndpointReferenceType nepr = (EndpointReferenceType)((XmlObjectWrapper)notificationConsumer.getEPR()).getXmlObject();
        //add ReferenceProperties
        ReferencePropertiesType refProps = nepr.addNewReferenceProperties();
View Full Code Here

Examples of org.xmlsoap.schemas.ws.x2004.x08.eventing.SubscribeDocument.addNewSubscribe()

      Subscription ls = this.sH.create(  );
      ls.setNotificationConsumer( notificationConsumer );
      ls.setSubscriptionEndConsumer( subscriptionEndConsumer );

      SubscribeDocument           sdom = SubscribeDocument.Factory.newInstance(  );
      SubscribeDocument.Subscribe s = sdom.addNewSubscribe(  );

      //create notifyTo EPR
      EndpointReferenceType nepr =
         (EndpointReferenceType) ( (XmlObjectWrapper) notificationConsumer.getEPR(  ) ).getXmlObject(  );
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.