Package org.apache.axis.message.addressing

Examples of org.apache.axis.message.addressing.Action


        {
            LOG.debug( MSG.getMessage( Keys.NO_ADDR_HDR ) );
            return null;
        }
        // TODO: we should probably be throwing a fault if there's no wsa:Action header
        Action headerAction = addrHeaders.getAction();
        if ( headerAction == null )
        {
            LOG.debug( MSG.getMessage( Keys.NO_ACTION_IN_ADDR_HDR ) );
            return null;
        }
        String action = headerAction.toString();
        LOG.debug( MSG.getMessage( Keys.GET_ACTION_FROM_ADDR_HDR, action ) );
        return action;
    }
View Full Code Here


        //  setting callback data;
        cbData.setSequenceId(rmMsgContext.getSequenceID());
        cbData.setMessageId(rmMsgContext.getMessageID());
        cbData.setMessageType(rmMsgContext.getMessageType());

        Action action = rmMsgContext.getAddressingHeaders().getAction();
        if (action != null) {
            cbData.setAction(action.toString());
        }

        return cbData;
    }
View Full Code Here

   * Set the action URI
   * @param actionUri
   * @throws MalformedURIException
   */
  public void setAction(String actionUri) throws MalformedURIException {
    Action a = new Action(new URI(actionUri));
    this.headers.setAction(a);
  }
View Full Code Here

   private static AddressingHeaders createAddressingHeaders(  )
   throws URI.MalformedURIException
   {
      AddressingHeaders wsaHeaders = new AddressingHeaders(  );
      wsaHeaders.setTo( new To( "http://localhost:8080/wsrf/services/sushi" ) );
      wsaHeaders.setAction( new Action( new URI( "urn:action" ) ) );
      return wsaHeaders;
   }
View Full Code Here

   * Set the action URI
   * @param actionUri
   * @throws MalformedURIException
   */
  public void setAction(String actionUri) throws MalformedURIException {
    Action a = new Action(new URI(actionUri));
    this.headers.setAction(a);
  }
View Full Code Here

      {
         LOG.debug( MSG.getMessage( Keys.NO_WSA_HEADERS ) );
         throw new FaultException( Soap1_1Constants.FAULT_CLIENT, "This endpoint requires WS-Addressing headers." );
      }

      Action wsaAction = addrHeaders.getAction(  );
      if ( wsaAction == null )
      {
         LOG.debug( MSG.getMessage( Keys.NO_WSA_ACTION ) );
         throw new FaultException( Soap1_1Constants.FAULT_CLIENT,
                                   "The WS-Addressing Action header is required by this endpoint." );
      }

      LOG.debug( MSG.getMessage( Keys.GET_ACTION_FROM_ADDR_HDR, wsaAction ) );
      return wsaAction.toString(  );
   }
View Full Code Here

TOP

Related Classes of org.apache.axis.message.addressing.Action

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.