Package org.apache.tuscany.sca.binding.ws.axis2.helloworld

Examples of org.apache.tuscany.sca.binding.ws.axis2.helloworld.HelloWorld


        }
    }

    public Message invoke(Message msg) {
       
        Axis2SOAPHeaderString header = (Axis2SOAPHeaderString)Axis2HeaderPolicyUtil.getHeader(msg, policy.getTokenName());
       
        if (header != null) {
            System.out.println("Web service received token: " + header.getHeaderString());
           
            // call out here to some 3rd party system to do whatever you
            // need to turn header credentials into an authenticated principal 
           
            Subject subject = SecurityUtil.getSubject(msg);
            Principal principal = new TokenPrincipal(header.getHeaderString());
            subject.getPrincipals().add(principal);           
        }
   
        return getNext().invoke(msg);
    }
View Full Code Here


            for (Axis2HeaderPolicy policy : axis2HeaderPolicies){
                //Axis2BindingHeaderConfigurator.getHeader(inMC, msg, policy.getHeaderName());
            }
           
            if (axis2TokenAuthenticationPolicy != null) {
                Axis2SOAPHeaderString tokenHeader = new Axis2SOAPHeaderString();
                Axis2BindingHeaderConfigurator.getHeader(inMC,
                                                         msg,
                                                         axis2TokenAuthenticationPolicy.getTokenName(),
                                                         tokenHeader);
            }
View Full Code Here

        if (isRampartRequired){
            // TODO - do we need to go back to configurator?
        }
       
        if (isMTOMRequired) {
            new Axis2MTOMPolicyProvider(endpoint).configureBinding(configContext);
        }
       
        if (isJMSRequired){
            // TODO - do we need to go back to configurator?
       
View Full Code Here

        if (isRampartRequired){
            Axis2EngineIntegration.loadRampartModule(configContext);
        }
       
        if (isMTOMRequired) {
            new Axis2MTOMPolicyProvider(endpoint).configureBinding(configContext);
        }
       
        if (isJMSRequired){
            // TODO - do we need to go back to configurator?
       
View Full Code Here

        if (isRampartRequired){
            // TODO - do we need to go back to configurator?
        }
       
        if (isMTOMRequired) {
            new Axis2MTOMPolicyProvider(endpoint).configureBinding(configContext);
        }
       
        if (isJMSRequired){
            // TODO - do we need to go back to configurator?
       
View Full Code Here

    public void configureBinding(Object configuration) {
        super.configureBinding(configuration);
   
        StatusImpl.appendStatus("TestBindingWSPolicyProviderReference.configureBinding()", configuration.getClass().getName());
       
        Axis2BaseBindingProvider bindingProvider = (Axis2BaseBindingProvider)configuration;
        ConfigurationContext axisConfigurationContext = bindingProvider.getAxisConfigurationContext();
        AxisConfiguration axisConfiguration = axisConfigurationContext.getAxisConfiguration();
        List<org.apache.axis2.engine.Phase> outPhases = axisConfiguration.getOutFlowPhases();
        outPhases.get(0).addHandler(new TestBindingWSAxisHandler("Reference OutFlow Handler"));
        List<org.apache.axis2.engine.Phase> inPhases = axisConfiguration.getInFlowPhases();
        inPhases.get(0).addHandler(new TestBindingWSAxisHandler("Reference InFlow Handler"))
View Full Code Here

    public void configureBinding(Object configuration) {
        super.configureBinding(configuration);
       
        StatusImpl.appendStatus("TestBindingWSPolicyProviderService.configureBinding()", configuration.getClass().getName());
       
        Axis2BaseBindingProvider bindingProvider = (Axis2BaseBindingProvider)configuration;
        ConfigurationContext axisConfigurationContext = bindingProvider.getAxisConfigurationContext();
        AxisConfiguration axisConfiguration = axisConfigurationContext.getAxisConfiguration();
        List<org.apache.axis2.engine.Phase> inPhases = axisConfiguration.getInFlowPhases();
        inPhases.get(0).addHandler(new TestBindingWSAxisHandler("Service InFlow Handler"));             
        List<org.apache.axis2.engine.Phase> outPhases = axisConfiguration.getOutFlowPhases();
        outPhases.get(0).addHandler(new TestBindingWSAxisHandler("Service OutFlow Handler"));
View Full Code Here

    public void configure() {
        InvocationChain bindingChain = endpointReference.getBindingInvocationChain();
        
        // add transport interceptor
        bindingChain.addInterceptor(Phase.REFERENCE_BINDING_TRANSPORT,
                                    new TransportReferenceInterceptor());
       
    }
View Full Code Here

    public void configure() {
        InvocationChain bindingChain = endpointReference.getBindingInvocationChain();
        
        // add transport interceptor
        bindingChain.addInterceptor(Phase.REFERENCE_BINDING_TRANSPORT,
                                    new TransportReferenceInterceptor());
       
    }
View Full Code Here

    public void configure() {
        InvocationChain bindingChain = endpointReference.getBindingInvocationChain();
        
        // add transport interceptor
        bindingChain.addInterceptor(Phase.REFERENCE_BINDING_TRANSPORT,
                                    new TransportReferenceInterceptor());
       
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.binding.ws.axis2.helloworld.HelloWorld

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.