Examples of WSAxis2BindingContext


Examples of org.apache.tuscany.sca.binding.ws.axis2.context.WSAxis2BindingContext

        return response;
    }
   
    protected Object invokeTargetOneWay(Message msg) throws AxisFault {
        WSAxis2BindingContext bindingContext = msg.getBindingContext();
        OperationClient operationClient = bindingContext.getAxisOperationClient();

        // ensure connections are tracked so that they can be closed by the reference binding
        MessageContext requestMC = operationClient.getMessageContext("Out");
        //requestMC.getOptions().setProperty(HTTPConstants.REUSE_HTTP_CLIENT, Boolean.TRUE);
        Options opt = requestMC.getOptions();
View Full Code Here

Examples of org.apache.tuscany.sca.binding.ws.axis2.context.WSAxis2BindingContext

        }
    }

    public Message invoke(Message msg) {
       
        WSAxis2BindingContext bindingContext = msg.getBindingContext();
        OperationClient operationClient = bindingContext.getAxisOperationClient();
       
        String username = null;
        String password = null;
       
        // get the security context
View Full Code Here

Examples of org.apache.tuscany.sca.binding.ws.axis2.context.WSAxis2BindingContext

        }
    }

    public Message invoke(Message msg) {
       
        WSAxis2BindingContext bindingContext = msg.getBindingContext();       
        MessageContext messageContext = bindingContext.getAxisInMessageContext();
       
        Map httpHeaderProperties = (Map)messageContext.getProperty(org.apache.axis2.context.MessageContext.TRANSPORT_HEADERS);
       
        String basicAuthString = (String)httpHeaderProperties.get("Authorization");
        String decodedBasicAuthString = null;
View Full Code Here

Examples of org.apache.tuscany.sca.binding.ws.axis2.context.WSAxis2BindingContext

    }
  
    public Message invoke(Message msg) {
        try {
            final OperationClient operationClient = createOperationClient(msg);
            WSAxis2BindingContext bindingContext = new WSAxis2BindingContext();
            bindingContext.setAxisOperationClient(operationClient);
            bindingContext.setAxisOutMessageContext(operationClient.getMessageContext("Out"));
            // set in the transport invoker when the response is received
            //bindingContext.setAxisInMessageContext(operationClient.getMessageContext("In"));
            msg.setBindingContext(bindingContext);
           
            msg = endpointReference.getBindingInvocationChain().getHeadInvoker().invoke(msg);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.