Package axis.org.apache.ws.generated.submgr

Examples of axis.org.apache.ws.generated.submgr.SubscriptionManagerHttpBindingStub


      String incomingMessage = notificationListener.waitForIncomingMessage(  );
      assertFalse( "Incoming Message started with an Error.",
                   incomingMessage.startsWith( "ERROR" ) );

      EndpointReferenceType              subscriptionReference = sub_response.getSubscriptionReference(  );
      SubscriptionManagerHttpBindingStub subMgrBinding = getSubMgrBinding(  );
      assertNotNull( subMgrBinding );

      subMgrBinding.setResourceId( AxisGenTypesUtils.getResourceId( subscriptionReference ) );

      subMgrBinding.destroy( null );

      notificationListener = new PortListen( NOTIFICATION_LISTENER_PORT, 5000 );

      testDiskPortSetResourcePropertiesUpdate(  );
      String response = notificationListener.waitForIncomingMessage(  );
View Full Code Here


         subscribe( ExampleConstants.RESOURCE_PROP_QNAME_BLOCK_SIZE,
                    "http://127.0.0.1:" + NOTIFICATION_LISTENER_PORT );

      EndpointReferenceType              subscriptionReference = sub_response.getSubscriptionReference(  );

      SubscriptionManagerHttpBindingStub subMgrBinding = getSubMgrBinding(  );
      assertNotNull( subMgrBinding );

      subMgrBinding.setResourceId( AxisGenTypesUtils.getResourceId( subscriptionReference ) );
      subMgrBinding.pauseSubcription( null );

      testDiskPortSetResourcePropertiesUpdate(  );

      String incomingMessage = notificationListener.waitForIncomingMessage(  );
      assertTrue( incomingMessage.startsWith( "ERROR:java.net.SocketTimeoutException: Accept timed out" ) );
      notificationListener = new PortListen( NOTIFICATION_LISTENER_PORT, 5000 );
      subMgrBinding.resumeSubscription( null );

      testDiskPortSetResourcePropertiesUpdate(  );
      String response = notificationListener.waitForIncomingMessage(  );
      assertFalse( response.startsWith( "ERROR" ) );
   }
View Full Code Here

      testDiskPortSetResourcePropertiesUpdate(  );
      String incomingMessage = notificationListener.waitForIncomingMessage(  );
      assertFalse( incomingMessage.startsWith( "ERROR" ) );

      EndpointReferenceType              subscriptionReference = sub_response.getSubscriptionReference(  );
      SubscriptionManagerHttpBindingStub subMgrBinding = getSubMgrBinding(  );
      assertNotNull( subMgrBinding );

      subMgrBinding.setResourceId( AxisGenTypesUtils.getResourceId( subscriptionReference ) );

      SetTerminationTime termTime = new SetTerminationTime(  );
      Calendar            calendar = Calendar.getInstance(  );

      //set to the start of time ;-) ..its already expired
      calendar.setTimeInMillis( 0 );
      termTime.setRequestedTerminationTime( calendar );
      subMgrBinding.setTerminationTime( termTime );

      notificationListener = new PortListen( NOTIFICATION_LISTENER_PORT, 5000 );

      testDiskPortSetResourcePropertiesUpdate(  );
      String response = notificationListener.waitForIncomingMessage(  );
View Full Code Here

    * Get a binding to a subscription using the SubscriptionManager service.
    */
   private SubscriptionManagerHttpBindingStub getSubMgrBinding(  )
   throws ServiceException
   {
      SubscriptionManagerHttpBindingStub binding =
         (SubscriptionManagerHttpBindingStub) new SubscriptionManagerServiceLocator(  ).getSubscriptionManagerPort( getAxisWebServiceWsdlUrl( "SubscriptionManagerPort" ) );
      assertNotNull( "subMgr stub is null.", binding );

      // ensure that we will time out after a minute
      binding.setTimeout( CALL_TIMEOUT );

      return binding;
   }
View Full Code Here

TOP

Related Classes of axis.org.apache.ws.generated.submgr.SubscriptionManagerHttpBindingStub

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.