Package org.apache.axis2.addressing

Examples of org.apache.axis2.addressing.EndpointReference


                log.debug("Setting the To header as : " + toAddress);
            }
            if (synCtx.getTo() != null) {
                synCtx.getTo().setAddress(toAddress);
            } else {
                synCtx.setTo(new EndpointReference(toAddress));
            }
        }

        // since we are injecting the new messages asynchronously, we cannot process a message
        // through a sequence and then again with an endpoint
View Full Code Here


        || ((messageCtx.getParameter(DO_ASYNC) != null) &&
                    JavaUtils.isTrueExplicitly(messageCtx.getParameter(DO_ASYNC).getValue()))) {

            String mep = messageCtx.getAxisOperation()
          .getMessageExchangePattern();
      EndpointReference replyTo = messageCtx.getReplyTo();
      // In order to invoke the service in the ASYNC mode, the request
      // should contain ReplyTo header if the MEP of the service is not
      // InOnly type
      if ((!WSDLUtil.isOutputPresentForMEP(mep))
          || (replyTo != null && !replyTo.hasAnonymousAddress())) {
        AsyncMessageReceiverWorker worker = new AsyncMessageReceiverWorker(
            messageCtx);
        messageCtx.getEnvelope().build();
        messageCtx.getConfigurationContext().getThreadPool().execute(
            worker);
View Full Code Here

        ExtensibilityElement ee = (ExtensibilityElement)eelts.next();
        if(AddressingConstants.Final.WSA_ENDPOINT_REFERENCE.equals(ee.getElementType())){
          try {
            Element elt = ((UnknownExtensibilityElement)ee).getElement();
            OMElement eprOMElement = XMLUtils.toOM(elt);
            EndpointReference epr = EndpointReferenceHelper.fromOM(eprOMElement);
            Map referenceParameters = epr.getAllReferenceParameters();
            if(referenceParameters != null){
              axisEndpoint.addParameter(AddressingConstants.REFERENCE_PARAMETER_PARAMETER, new ArrayList(referenceParameters.values()));
            }
          } catch (Exception e) {
            if(log.isDebugEnabled()){
View Full Code Here

        if (this.subscriptionID != null) {
            throw new IllegalStateException();
        }
        try {
            if (this.pullMode) {
                EndpointReference messageBoxEPR = this.wseClient.createPullMsgBox(this.messageBoxURL.toString(),20000L);
                this.subscriptionID = this.wseClient.subscribe(messageBoxEPR.getAddress(), this.topic, null);
                this.messagePuller = this.wseClient.startPullingEventsFromMsgBox(messageBoxEPR, this, 1000L, 20000L);
            } else {
                String[] endpoints = this.wseClient.startConsumerService(2222, this);
                this.subscriptionID = this.wseClient.subscribe(endpoints[0], this.topic, null);
            }
View Full Code Here

    public NotificationSender(String brokerURL, String topic) {
        logger.debug("brokerURL:" + brokerURL + "topic:" + topic);
        this.topic = topic;
        this.brokerURL = brokerURL;
        this.workflowID = URI.create(StringUtil.convertToJavaIdentifier(this.topic));
        this.eventSink = new EndpointReference(this.brokerURL);
        Properties props = new Properties();

        this.notifier = NotifierFactory.createNotifier();
        URI initiatorWorkflowID = null;
        URI initiatorServiceID = URI.create(StringUtil.convertToJavaIdentifier(topic));
View Full Code Here

    CreateSequence createSeqResPart = (CreateSequence) createSeqRMMessage
    .getMessagePart(Sandesha2Constants.MessageParts.CREATE_SEQ);

    createSeqResPart.setAcksTo(
        new AcksTo(new EndpointReference(AddressingConstants.Final.WSA_NONE_URI),
                   SpecSpecificConstants.getRMNamespaceValue(rmsBean.getRMVersion()),
                   AddressingConstants.Final.WSA_NAMESPACE));
   
    // Update the SOAP Envelope of the message
    createSeqRMMessage.addSOAPEnvelope();
View Full Code Here

   
    ConfigurationContext configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(repoPath,axis2_xml);

    Options clientOptions = new Options ();
    clientOptions.setAction(echoAction);
    clientOptions.setTo(new EndpointReference (to));

    //setting the SOAP version as 1.2
    if (runSoap12)
      clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
View Full Code Here

   
    ConfigurationContext configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(repoPath,axis2_xml);   
   
    Options clientOptions = new Options ();
    clientOptions.setAction(pingAction);
    clientOptions.setTo(new EndpointReference (to));
    clientOptions.setFaultTo(new EndpointReference(AddressingConstants.Final.WSA_ANONYMOUS_URL));

    String sequenceKey = SandeshaUtil.getUUID();
    clientOptions.setProperty(SandeshaClientConstants.SEQUENCE_KEY,sequenceKey);
    clientOptions.setProperty(SandeshaClientConstants.RM_SPEC_VERSION,Sandesha2Constants.SPEC_VERSIONS.v1_1);
   
View Full Code Here

    Options clientOptions = new Options ();
    clientOptions.setAction(pingAction);
    clientOptions.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
   
    clientOptions.setTo(new EndpointReference (to));
   
    String sequenceKey = "sequence1";
    clientOptions.setProperty(SandeshaClientConstants.SEQUENCE_KEY,sequenceKey);
    ServiceClient serviceClient = new ServiceClient (configContext,null);
    serviceClient.setOptions(clientOptions);
View Full Code Here

    Options clientOptions = new Options ();
    clientOptions.setAction(pingAction);
    clientOptions.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
   
    clientOptions.setTo(new EndpointReference (to));
   
    String sequenceKey = "sequence2";
    clientOptions.setProperty(SandeshaClientConstants.SEQUENCE_KEY,sequenceKey);
    ServiceClient serviceClient = new ServiceClient (configContext,null);
    serviceClient.setOptions(clientOptions);
View Full Code Here

TOP

Related Classes of org.apache.axis2.addressing.EndpointReference

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.