Package org.apache.axis.message

Examples of org.apache.axis.message.MessageElement


   throws Exception
   {
      SetResourceProperties_Element request =
         new SetResourceProperties_Element(  );
      InsertType[]           set_components = new InsertType[1];
      MessageElement         manuElem       =
         new MessageElement( ExampleConstants.RESOURCE_PROP_QNAME_MANUFACTURER );
      manuElem.addTextNode( "New XYZ Company" );
      set_components[0] = new InsertType(  );
      set_components[0].set_any( new MessageElement[]
                                 {
                                    manuElem
                                 } );
View Full Code Here


   throws Exception
   {
      // Test operation
      SetResourceProperties_Element request        = new SetResourceProperties_Element(  );
      UpdateType[]           set_components = new UpdateType[1];
      MessageElement         bsElem         =
         new MessageElement( ExampleConstants.RESOURCE_PROP_QNAME_BLOCK_SIZE );
      final String           bsValue = "7777";
      bsElem.addTextNode( bsValue );
      set_components[0] = new UpdateType(  );
      set_components[0].set_any( new MessageElement[]
                                 {
                                    bsElem
                                 } );
View Full Code Here

      testGetCapacityMetric(  );

      // Now update the value of the ActiveTime metric
      SetResourceProperties_Element request            = new SetResourceProperties_Element(  );
      UpdateType[]           setComponents      = new UpdateType[1];
      MessageElement         activeTimePropElem =
         new MessageElement( ExampleConstants.RESOURCE_PROP_QNAME_ACTIVE_TIME );
      final String           activeTimeValue = "P7M2DT18H1M32S";
      activeTimePropElem.addTextNode( activeTimeValue );
      setComponents[0] = new UpdateType(  );
      setComponents[0].set_any( new MessageElement[]
                                {
                                   activeTimePropElem
                                } );
View Full Code Here

      ArrayList topicQNames = new ArrayList(  );

      for ( int i = 0; i < topicSpaceElements.length; i++ )
      {
         MessageElement topicSpaceElement = topicSpaceElements[i];

         //System.out.println(topicSpaceElement.getAsString());
         Iterator children = topicSpaceElement.getChildElements(  );
         assertNotNull( children );
         assertTrue( children.hasNext(  ) );
         String targetNS = topicSpaceElement.getAttributeValue( "targetNamespace" );

         //System.out.println("Namespace: " + targetNS);
         while ( children.hasNext(  ) )
         {
            MessageElement topicElem = (MessageElement) children.next(  );

            assertEquals( new QName( TopicsConstants.NSURI_WS_TOPICS_1_0, "Topic" ),
                          NameUtils.toQName( topicElem.getElementName(  ) ) );

            String name = topicElem.getAttributeValue( "name" );
            topicQNames.add( new QName( targetNS, name ) );

            //System.out.println("Topic Name: " + name);
         }
      }
View Full Code Here

    */
   private MessageElement[] buildTopicExpressionTypeAny( QName propQName )
   {
      return new MessageElement[]
             {
                new MessageElement( propQName )
             };
   }
View Full Code Here

      snt.set_value( new QName( "TestNotifConsumer" ) );
      epr.setServiceName( snt );

      // Set a couple of reference properties, including a ResourceID.
      MessageElement[] prop = new MessageElement[2];
      MessageElement   propsResourceID =
         new SOAPBodyElement( MuseAddressingConstants.REFERENCE_PROP_QNAME_RESOURCE_ID, "4444" );
      prop[0] = propsResourceID;
      MessageElement otherProp = new SOAPBodyElement( new QName( "http://com.xyz/props", "myprop" ),
                                                      "foo" );
      prop[1] = otherProp;
      ReferencePropertiesType props = new ReferencePropertiesType(  );
      props.set_any( prop );
      epr.setReferenceProperties( props );
View Full Code Here

            new org.apache.axis.message.addressing.ReferencePropertiesType(  );

         MessageElement[]                                           prop =
            new MessageElement[]
            {
               new MessageElement( MuseAddressingConstants.REFERENCE_PROP_QNAME_RESOURCE_ID,
                                   this.getId(  ) )
            };
         props.set_any( prop );
         endpointRef.setProperties( props );
View Full Code Here

      // Set up the request to ask for a subscription to the change notification of the given Resource Property
      TopicExpressionType tet = new TopicExpressionType(  );
      tet.setDialect( new URI( TopicsConstants.DIALECT_TOPIC_EXPRESSION_SIMPLE ) );
      tet.set_any( new MessageElement[]
                   {
                      new MessageElement( SensorWsdmServiceWSResource.PropertyQNames.TEMPERATURE )
                   } );
      request.setTopicExpression( tet );

      Calendar terminationTime = Calendar.getInstance(  );
      terminationTime.add( Calendar.HOUR, 24 ); // expire this subscription in 24 hours
View Full Code Here

      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

         {
            retValues = new String[response.get_any(  ).length];

            for ( int i = 0; i < response.get_any(  ).length; i++ )
            {
               MessageElement propElem = response.get_any(  )[i];
               retValues[i] = propElem.getValue(  );
            }
         }
         else
         {
            retValues = new String[0];
View Full Code Here

TOP

Related Classes of org.apache.axis.message.MessageElement

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.