Examples of engageModule()


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

        setUpOptions(clientOptions);
       
        ServiceClient serviceClient = new ServiceClient (configurationContext,null);
       
//      engage Rampart
        serviceClient.engageModule(new QName("rampart"));
       
        serviceClient.setOptions(clientOptions);
       
        serviceClient.fireAndForget(getPingOMBlock("ping1"));
        serviceClient.fireAndForget(getPingOMBlock("ping2"));
View Full Code Here

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

        RMInteropServiceStub stub = new RMInteropServiceStub (configurationContext, targetEndpoint);
        ServiceClient serviceClient = stub._getServiceClient();
        setUpOptions(serviceClient.getOptions());
       
        //engage Rampart
        serviceClient.engageModule(new QName("rampart"));
       
    Ping ping = new Ping ();
    ping.setText("ping1");
    stub.Ping (ping);
   
View Full Code Here

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

           
            ServiceClient client = getServiceClient(rstQn, issuerAddress);
           
            client.getServiceContext().setProperty(RAMPART_POLICY, issuerPolicy);
            client.getOptions().setSoapVersionURI(this.soapVersion);
            client.engageModule("addressing");

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

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

        }

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

    /**
     * @param result
View Full Code Here

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

    options.setAction(action);
    options.setTo(new EndpointReference(args[0]));
    options.setProperty(RampartMessageData.KEY_RAMPART_POLICY,  loadPolicy(args[2]));
    client.setOptions(options);

    client.engageModule("addressing");
    client.engageModule("rampart");

    OMElement response = client.sendReceive(getPayload());
    OMElement saml = getSAMLToken(response);
   
View Full Code Here

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

    options.setTo(new EndpointReference(args[0]));
    options.setProperty(RampartMessageData.KEY_RAMPART_POLICY,  loadPolicy(args[2]));
    client.setOptions(options);

    client.engageModule("addressing");
    client.engageModule("rampart");

    OMElement response = client.sendReceive(getPayload());
    OMElement saml = getSAMLToken(response);
   
    System.out.println(saml);
View Full Code Here

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

            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");

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

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

            client.getOptions().setSoapVersionURI(this.soapVersion);
            if(this.addressingNs != null) {
                client.getOptions().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

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

            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

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

            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
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.