Package org.apache.axis2.addressing

Examples of org.apache.axis2.addressing.EndpointReference


        QName serviceName = null;

        try {
            client = new ServiceClient();
            Options options = new Options();
            EndpointReference endPoint = new EndpointReference(this.getLocation(modelService));
            options.setTo(endPoint);
            client.setOptions(options);
        } catch (AxisFault e) {
            throw new GenericServiceException("RPC service error", e);
        }
View Full Code Here


       
        if (this.binding != null) {
            msgContext.setProperty(JAXWSMessageReceiver.PARAM_BINDING, this.binding)
        }
       
        msgContext.setTo(new EndpointReference(request.getURI().toString()));
    }
View Full Code Here

            boolean isWrapped = operationMetaData.isDocLitWrapped();
            List<?> sig = operationMetaData.getOperationSignature();
            SDODataBinding dataBinding = new SDODataBinding(cl, typeHelper, sig.size() > 0 ? (QName) sig.get(0) : null, isWrapped);

            Options options = new Options();
            options.setTo(new EndpointReference(wsPortMetaData.getEndpoint()));
            options.setProperty(MessageContextConstants.CHUNKED, Boolean.FALSE);

            String wsdlOperationName = operationMetaData.getBindingOperation().getOperation().getName();

            String soapAction = wsPortMetaData.getOperationMetaData(wsdlOperationName).getSOAPAction();
View Full Code Here

        this.log = log;
    }

    @Override
    public EndpointReference[] getEndpointReferences(String ip) {
        return new EndpointReference[] { new EndpointReference(MailConstants.TRANSPORT_PREFIX
                + emailAddress) };
    }
View Full Code Here

        msgContext.setProperty(RequestResponseTransport.TRANSPORT_CONTROL, new MailRequestResponseTransport());

        // set message context From
        if (outInfo.getFromAddress() != null) {
            msgContext.setFrom(
                new EndpointReference(MailConstants.TRANSPORT_PREFIX +
                    outInfo.getFromAddress().getAddress()));
        }

        // save original mail message id message context MessageID
        msgContext.setMessageID(outInfo.getRequestMessageID());
View Full Code Here

    ServiceClient serviceClient = new ServiceClient (configContext,null)
   
    Options clientOptions = new Options ();
   
    clientOptions.setTo(new EndpointReference (toEPR));
   
   
    String acksTo = serviceClient.getMyEPR(Constants.TRANSPORT_HTTP).getAddress() + "/" + ServiceClient.ANON_OUT_IN_OP;
    clientOptions.setProperty(SandeshaClientConstants.AcksTo,acksTo);
   
View Full Code Here

      log.debug("Exit: SandeshaUtil::removeMustUnderstand");
    return envelope;
  }

  public static EndpointReference cloneEPR (EndpointReference epr) {
    EndpointReference newEPR = new EndpointReference (epr.getAddress());
    Map referenceParams = epr.getAllReferenceParameters();
   
    if (referenceParams != null) {
      for (Iterator keys = referenceParams.keySet().iterator(); keys
          .hasNext();) {
        Object key = keys.next();
        Object referenceParam = referenceParams.get(key);

        if (referenceParam instanceof OMElement) {
          OMElement clonedElement = ((OMElement) referenceParam)
              .cloneOMElement();
          clonedElement.setText("false");
          newEPR.addReferenceParameter(clonedElement);
        }
      }
    }
   
    return newEPR;
View Full Code Here

      return epr;
    }

    // Handle EPRs that have not yet been set. These are effectively WS-A anon, and therefore
    // we can rewrite them.
    if(epr == null) epr = new EndpointReference(null);
   
    String address = epr.getAddress();
    if(address == null ||
       AddressingConstants.Final.WSA_ANONYMOUS_URL.equals(address) ||
       AddressingConstants.Submission.WSA_ANONYMOUS_URL.equals(address)) {
View Full Code Here

   
//    clientOptions.setProperty(MessageContextConstants.CHUNKED,Constants.VALUE_FALSE);   //uncomment this to send messages without chunking.
//    clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);   //uncomment this to send messages in SOAP 1.2
//    clientOptions.setProperty(SandeshaClient.RM_SPEC_VERSION,Sandesha2Constants.SPEC_VERSIONS.v1_1);  //uncomment this to send the messages according to the v1_1 spec.
   
    clientOptions.setTo(new EndpointReference (toEPR));
   
    EndpointReference endpoint =   serviceClient.getMyEPR(Constants.TRANSPORT_HTTP);
    clientOptions.setProperty(SandeshaClientConstants.AcksTo,endpoint.getAddress());
   
    clientOptions.setTransportInProtocol(Constants.TRANSPORT_HTTP);
    clientOptions.setAction("urn:wsrm:Ping");
   
    String sequenceKey = "sequence2";
View Full Code Here

   
//    serviceClient.engageModule(new QName ("sandesha2"));
   
    Options clientOptions = new Options ();
   
    clientOptions.setTo(new EndpointReference (toEPR));
   
    String sequenceKey = "sequence3";
    clientOptions.setProperty(SandeshaClientConstants.SEQUENCE_KEY,sequenceKey);

    //You must set the following two properties in the request-reply case.
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.