Package org.apache.axis.message

Examples of org.apache.axis.message.MessageElement


    throws ManifoldCFException
  {
    try
    {
      GetListItemsQuery rval = new GetListItemsQuery();
      MessageElement queryNode = new MessageElement((String)null,"Query");
      rval.set_any(new MessageElement[]{queryNode});
      MessageElement whereNode = new MessageElement((String)null,"Where");
      queryNode.addChild(whereNode);
      MessageElement eqNode = new MessageElement((String)null,"Eq");
      whereNode.addChild(eqNode);
      MessageElement fieldRefNode = new MessageElement((String)null,"FieldRef");
      eqNode.addChild(fieldRefNode);
      fieldRefNode.addAttribute(null,"Name",fieldName);
      MessageElement valueNode = new MessageElement((String)null,"Value");
      eqNode.addChild(valueNode);
      valueNode.addAttribute(null,"Type",type);
      valueNode.addTextNode(value);
      return rval;
    }
    catch (javax.xml.soap.SOAPException e)
    {
      throw new ManifoldCFException(e.getMessage(),e);
View Full Code Here


    throws ManifoldCFException
  {
    try
    {
      GetListItemsQuery rval = new GetListItemsQuery();
      MessageElement queryNode = new MessageElement((String)null,"Query");
      rval.set_any(new MessageElement[]{queryNode});
      MessageElement orderByNode = new MessageElement((String)null,"OrderBy");
      queryNode.addChild(orderByNode);
      orderByNode.addAttribute(null,"Override","TRUE");
      orderByNode.addAttribute(null,"UseIndexForOrderBy","TRUE");
      MessageElement fieldRefNode = new MessageElement((String)null,"FieldRef");
      orderByNode.addChild(fieldRefNode);
      fieldRefNode.addAttribute(null,"Ascending","TRUE");
      fieldRefNode.addAttribute(null,"Name",indexedColumn);
      return rval;
    }
    catch (javax.xml.soap.SOAPException e)
    {
      throw new ManifoldCFException(e.getMessage(),e);
View Full Code Here

    throws ManifoldCFException
  {
    try
    {
      GetListItemsQueryOptions rval = new GetListItemsQueryOptions();
      MessageElement queryOptionsNode = new MessageElement((String)null,"QueryOptions");
      rval.set_any(new MessageElement[]{queryOptionsNode});
      MessageElement pagingNode = new MessageElement((String)null,"Paging");
      queryOptionsNode.addChild(pagingNode);
      pagingNode.addAttribute(null,"ListItemCollectionPositionNext",pageNextString);
      MessageElement viewAttributesNode = new MessageElement((String)null,"ViewAttributes");
      queryOptionsNode.addChild(viewAttributesNode);
      viewAttributesNode.addAttribute(null,"Scope","Recursive");

      return rval;
    }
    catch (javax.xml.soap.SOAPException e)
    {
View Full Code Here

    throws ManifoldCFException
  {
    try
    {
      GetListItemsQueryOptions rval = new GetListItemsQueryOptions();
      MessageElement queryOptionsNode = new MessageElement((String)null,"QueryOptions");
      rval.set_any(new MessageElement[]{queryOptionsNode});
      MessageElement viewAttributesNode = new MessageElement((String)null,"ViewAttributes");
      queryOptionsNode.addChild(viewAttributesNode);
      viewAttributesNode.addAttribute(null,"Scope","Recursive");

      return rval;
    }
    catch (javax.xml.soap.SOAPException e)
    {
View Full Code Here

    * @throws Exception DOCUMENT_ME
    */
   public void testUpdateStateInfo(  )
   throws Exception
   {
      MessageElement updateElem =
         new MessageElement( axis.com.xyz.DiskWsdmServiceWSResource.PropertyQNames.STATEINFO );
      SOAPElement    child1 =
         updateElem.addChildElement( "State",
                                     axis.com.xyz.DiskWsdmServiceWSResource.PropertyQNames.STATEINFO
                                     .getNamespaceURI(  ) );
      child1.addTextNode( "urn:stopped" );
      SOAPElement child2 =
         updateElem.addChildElement( "TimeEntered",
                                     DiskWsdmServiceWSResource.PropertyQNames.STATEINFO.getNamespaceURI(  ) );
      child2.addTextNode( "2004-03-15T00:00:00" );
      MessageElement[] updateElems = new MessageElement[]
                                     {
                                        updateElem
View Full Code Here

      PropertyChangeNotificationTestListenerImpl listener = new PropertyChangeNotificationTestListenerImpl(  );
      m_resourcePropsMgr.addPropertyChangeNotificationListener( listener );

      MessageElement[] UPDATE__MANUFACTURER_ARRAY;
      UPDATE__MANUFACTURER_ARRAY = new MessageElement[1];
      MessageElement update_elem =
         new MessageElement( DiskWsdmServiceWSResource.PropertyQNames.MANUFACTURER, MANUFACTURER_MAXTOR );
      UPDATE__MANUFACTURER_ARRAY[0] = update_elem;
      m_resourcePropsMgr.updateResourceProperties( UPDATE__MANUFACTURER_ARRAY );

      assertTrue( listener.isNotified(  ) );
      assertTrue( listener.getEvent(  ).getResourcePropName(  ).getLocalPart(  ).equals( axis.com.xyz.DiskWsdmServiceWSResource.PropertyQNames.MANUFACTURER
View Full Code Here

   throws Exception
   {
      MessageElement[] updateElems =
         new MessageElement[]
         {
            new MessageElement( DiskWsdmServiceWSResource.PropertyQNames.MANUFACTURER, MANUFACTURER_SEAGATE ),
            new MessageElement( DiskWsdmServiceWSResource.PropertyQNames.BLOCKSIZE, "12" )
         };

      try
      {
         m_resourcePropsMgr.updateResourceProperties( updateElems );
View Full Code Here

   throws Exception
   {
      MessageElement[] updateElems =
         new MessageElement[]
         {
            new MessageElement( DiskWsdmServiceWSResource.PropertyQNames.MANUFACTURER, MANUFACTURER_SEAGATE ),
            new MessageElement( DiskWsdmServiceWSResource.PropertyQNames.MANUFACTURER, MANUFACTURER_MAXTOR )
         };

      try
      {
         m_resourcePropsMgr.updateResourceProperties( updateElems );
View Full Code Here

          SetResourcePropertyRequestFailedFaultException,
          Exception
   {
      MessageElement[] propElems = new MessageElement[]
                                   {
                                      new MessageElement( name, newValue )
                                   };
      m_resourcePropsMgr.insertResourceProperties( propElems );
   }
View Full Code Here

          InvalidResourcePropertyQNameFaultException,
          Exception
   {
      MessageElement[] propElems = new MessageElement[]
                                   {
                                      new MessageElement( name, newValue )
                                   };
      m_resourcePropsMgr.updateResourceProperties( propElems );
   }
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.