Package org.apache.axis2.client

Examples of org.apache.axis2.client.Call.engageModule()


            clientOptions.setSoapVersionURI(this.soapVersion);
            clientOptions.setCallTransportCleanup(true);
            if(this.addressingNs != null) {
                clientOptions.setProperty(AddressingConstants.WS_ADDRESSING_VERSION, this.addressingNs);
            }
            client.engageModule("addressing");
            client.engageModule("rampart");

            //Process the STS and service policy policy
            this.processPolicy(issuerPolicy, servicePolicy);
           
View Full Code Here


            clientOptions.setCallTransportCleanup(true);
            if(this.addressingNs != null) {
                clientOptions.setProperty(AddressingConstants.WS_ADDRESSING_VERSION, this.addressingNs);
            }
            client.engageModule("addressing");
            client.engageModule("rampart");

            //Process the STS and service policy policy
            this.processPolicy(issuerPolicy, servicePolicy);
           
            OMElement response = client.sendReceive(rstQn,
View Full Code Here

            client.getServiceContext().setProperty(RAMPART_POLICY, issuerPolicy);
            client.getOptions().setSoapVersionURI(this.soapVersion);
            if(this.addressingNs != null) {
                client.getOptions().setProperty(AddressingConstants.WS_ADDRESSING_VERSION, this.addressingNs);
            }
            client.engageModule("addressing");
            client.engageModule("rampart");

            this.processPolicy(issuerPolicy, null);
           
            OMElement response = client.sendReceive(rstQn,
View Full Code Here

            client.getOptions().setSoapVersionURI(this.soapVersion);
            if(this.addressingNs != null) {
                client.getOptions().setProperty(AddressingConstants.WS_ADDRESSING_VERSION, this.addressingNs);
            }
            client.engageModule("addressing");
            client.engageModule("rampart");

            this.processPolicy(issuerPolicy, null);
           
            OMElement response = client.sendReceive(rstQn,
                                                    createValidateRequest(requestType,tokenId));
View Full Code Here

        client.getServiceContext().setProperty(RAMPART_POLICY, issuerPolicy);
        client.getOptions().setSoapVersionURI(this.soapVersion);
        if(this.addressingNs != null) {
            client.getOptions().setProperty(AddressingConstants.WS_ADDRESSING_VERSION, this.addressingNs);
        }
        client.engageModule("addressing");
        client.engageModule("rampart");

        this.processPolicy(issuerPolicy, null);
       
        String tokenType = RahasConstants.TOK_TYPE_SAML_10;
View Full Code Here

        client.getOptions().setSoapVersionURI(this.soapVersion);
        if(this.addressingNs != null) {
            client.getOptions().setProperty(AddressingConstants.WS_ADDRESSING_VERSION, this.addressingNs);
        }
        client.engageModule("addressing");
        client.engageModule("rampart");

        this.processPolicy(issuerPolicy, null);
       
        String tokenType = RahasConstants.TOK_TYPE_SAML_10;
       
View Full Code Here

        }

        //Set the action
        client.getOptions().setAction(action);
        client.getOptions().setTo(new EndpointReference(issuerAddress));
        client.engageModule("rampart");
        return client;
    }

    /**
     * @param result
View Full Code Here

        myConfigContext.getAxisConfiguration().getModules();

        ServiceClient serviceClient = new ServiceClient(myConfigContext, null);
        Options opts = new Options();
        serviceClient.engageModule("addressing");




        UnifiedEndpointFactory uepFactory = new UnifiedEndpointFactory();
View Full Code Here

            stub = new RelyingPartyServiceStub(configCtx, serviceURL);
            ServiceClient client = stub._getServiceClient();
            // Engage rampart as we are going to sign requests to Relying Party
            // Service
            client.engageModule("rampart");
            // Get a RampartConfig with default crypto information
            Policy rampartConfig = IdentityBaseUtil.getDefaultRampartConfig();
            Policy signOnly = IdentityBaseUtil.getSignOnlyPolicy();
            Policy mergedPolicy = signOnly.merge(rampartConfig);
            // Attach the RampartConfig policy to the client, rest of the
View Full Code Here

    }

    public ProfileHistory[] getProfileHistory() throws Exception {
        try {
            ServiceClient client = provAdminStub._getServiceClient();
            client.engageModule("addressing"); // IMPORTANT
            Options options = client.getOptions();
            options.setUseSeparateListener(true);
            options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
            provAdminStub.startgetProfileHistory(callback);
            handleCallback();
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.