Package axis.com.ibm.www.xmlns.stdwip.web_services.WS_ResourceProperties

Examples of axis.com.ibm.www.xmlns.stdwip.web_services.WS_ResourceProperties.GetResourcePropertyResponse


    * @throws RemoteException
    */
   public void testGetVersion(  )
   throws RemoteException
   {
      GetResourcePropertyResponse vers =
         m_stub.getResourceProperty( RegistryWsdmServiceWSResource.PropertyQNames.VERSION );
      assertNotNull( vers );
      assertNotNull( vers.get_any(  ) );
      assertEquals( 1, vers.get_any(  ).length );
      assertTrue( vers.get_any(  )[0].toString(  ).indexOf( "$Revision" ) > -1 );
   }
View Full Code Here


    */
   public void testDiskPortGetResourceProperty(  )
   throws Exception
   {
      // Test operation
      GetResourcePropertyResponse response =
         m_stub.getResourceProperty( ExampleConstants.RESOURCE_PROP_QNAME_BLOCK_SIZE );

      // validate results
      assertNotNull( response );

      MessageElement propElem = response.get_any(  )[0];
      assertEquals( ExampleConstants.RESOURCE_PROP_QNAME_BLOCK_SIZE,
                    NameUtils.toQName( propElem.getElementName(  ) ) );
      assertEquals( String.valueOf( ExampleConstants.INITIAL_PROP_VALUE__BLOCK_SIZE ),
                    propElem.getValue(  ) );
   }
View Full Code Here

    */
   public void testGetResourcePropertyDeleted(  )
   throws Exception
   {
      deleteResourceProp( ExampleConstants.RESOURCE_PROP_QNAME_MANUFACTURER );
      GetResourcePropertyResponse value =
         m_stub.getResourceProperty( ExampleConstants.RESOURCE_PROP_QNAME_MANUFACTURER );
      assertNotNull( value );
      assertNull( value.get_any(  ) );
   }
View Full Code Here

    */
   public void testMuwsStartStop(  )
   throws Exception
   {
      m_stub.start( new Start(  ) );
      GetResourcePropertyResponse resourceProperty =
         m_stub.getResourceProperty( Muws05Constants.RESOURCE_PROP_QNAME_RESOURCE_STATE );
      MessageElement[]             propElems = resourceProperty.get_any(  );
      assertEquals( new Integer( 1 ),
                    new Integer( propElems.length ) );
      SOAPElement stateElem =
         (SOAPElement) propElems[0].getChildElements( new QName( Muws05Constants.NSURI_MUWS_SCHEMA, "State" ) )
                                   .next(  );
      assertNotNull( stateElem );
      assertEquals( Muws05Constants.RESOURCE_STATE_URI_AVAILABLE,
                    stateElem.getValue(  ) );
      m_stub.stop( new Stop(  ) );
      resourceProperty    = m_stub.getResourceProperty( Muws05Constants.RESOURCE_PROP_QNAME_RESOURCE_STATE );
      propElems           = resourceProperty.get_any(  );
      assertEquals( new Integer( 1 ),
                    new Integer( propElems.length ) );
      stateElem =
         (SOAPElement) propElems[0].getChildElements( new QName( Muws05Constants.NSURI_MUWS_SCHEMA, "State" ) )
                                   .next(  );
View Full Code Here

    */
   public void testSubscriptionBasedOnTopicSpaceProperty(  )
   throws Exception
   {
      // Test operation
      GetResourcePropertyResponse response =
         m_stub.getResourceProperty( ExampleConstants.RESOURCE_PROP_QNAME_TOPIC_SPACE );

      // validate results
      assertNotNull( response );

      MessageElement[] topicSpaceElements = response.get_any(  );
      assertTrue( topicSpaceElements.length == 2 );
      assertEquals( ExampleConstants.RESOURCE_PROP_QNAME_TOPIC_SPACE,
                    NameUtils.toQName( topicSpaceElements[0].getElementName(  ) ) );
      assertEquals( ExampleConstants.RESOURCE_PROP_QNAME_TOPIC_SPACE,
                    NameUtils.toQName( topicSpaceElements[1].getElementName(  ) ) );
View Full Code Here

    */
   public void testSubscriptionBasedOnTopicsProperty(  )
   throws Exception
   {
      // Test operation
      GetResourcePropertyResponse response =
         m_stub.getResourceProperty( BaseNotification10Constants.RESOURCE_PROP_QNAME_TOPIC );

      // validate results
      assertNotNull( response );

      MessageElement[] topics = response.get_any(  );
      assertTrue( topics.length == 7 );
      ArrayList topicQNames = new ArrayList(  );

      for ( int i = 0; i < topics.length; i++ )
      {
View Full Code Here

   {
      String retValue;

      try
      {
         GetResourcePropertyResponse response =
            getAcService(  ).getResourceProperty( ACSystemWsdmServiceWSResource.PropertyQNames.RESOURCESTATE );
         MessageElement               propElem = response.get_any(  )[0];

         ResourceStateDocument        stateDoc  = ResourceStateDocument.Factory.parse( propElem );
         StateInformation             stateInfo = stateDoc.getResourceState(  );

         Calendar                     timeEntered = stateInfo.getTimeEntered(  );
View Full Code Here

   {
      int retValue = -1;

      try
      {
         GetResourcePropertyResponse response = getSensorService( sensorId ).getResourceProperty( propQName );
         MessageElement               propElem = response.get_any(  )[0];
         retValue = new Integer( propElem.getValue(  ) ).intValue(  );
      }
      catch ( Exception e )
      {
         e.printStackTrace( System.out );
View Full Code Here

   {
      String retValue;

      try
      {
         GetResourcePropertyResponse response =
            getSensorService( sensorId ).getResourceProperty( SensorWsdmServiceWSResource.PropertyQNames.RESOURCESTATE );
         MessageElement               propElem = response.get_any(  )[0];

         ResourceStateDocument        stateDoc  = ResourceStateDocument.Factory.parse( propElem );
         StateInformation             stateInfo = stateDoc.getResourceState(  );

         Calendar                     timeEntered = stateInfo.getTimeEntered(  );
View Full Code Here

   {
      int[] retValues;

      try
      {
         GetResourcePropertyResponse response  = getReportService(  ).getResourceProperty( propQName );
         MessageElement[]             propElems = response.get_any(  );

         if ( propElems == null )
         {
            propElems = new MessageElement[0];
         }
View Full Code Here

TOP

Related Classes of axis.com.ibm.www.xmlns.stdwip.web_services.WS_ResourceProperties.GetResourcePropertyResponse

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.