Package org.apache.axis2.client

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


        OMElement topicOm = factory.createOMElement("Topic", nsaip);
        factory.createOMText(topicOm, topic);

        // set addressing, transport and proxy url

        serviceClient.engageModule("addressing");
        options.setTo(new EndpointReference(addUrl));
        options.setAction(action);
        options.setProperty(MessageContext.CLIENT_API_NON_BLOCKING,
                Boolean.FALSE); // set for fire and foget
        serviceClient.setOptions(options);
View Full Code Here


            proxyProperties.setPassWord("");
            proxyProperties.setDomain("");
            options.setProperty(HTTPConstants.PROXY, proxyProperties);
        }

        serviceClient.engageModule("addressing");
        options.setTo(new EndpointReference(addUrl));
        options.setAction("urn:getQuote");
        options.setProperty(Constants.Configuration.MESSAGE_TYPE, "application/json");
        serviceClient.setOptions(options);
        OMElement payload =
View Full Code Here

//    clientOptions.setProperty(SandeshaClient.RM_SPEC_VERSION,Sandesha2Constants.SPEC_VERSIONS.v1_1);  //uncomment this to send the messages according to the v1_1 spec.
//    clientOptions.setProperty(AddressingConstants.WS_ADDRESSING_VERSION,AddressingConstants.Submission.WSA_NAMESPACE);
   
    clientOptions.setProperty(SandeshaClientConstants.SANDESHA_LISTENER, new SandeshaListenerImpl ());
    ServiceClient serviceClient = new ServiceClient (configContext,null);
    serviceClient.engageModule(new QName ("sandesha2"));
   
    clientOptions.setAction("urn:wsrm:Ping");
    serviceClient.setOptions(clientOptions);
   
    clientOptions.setProperty(SandeshaClientConstants.LAST_MESSAGE, "true");
View Full Code Here

    ConfigurationContext configurationContext = getConfigurationContext();
    ServiceClient serviceClient = new ServiceClient (configurationContext,null)
   
    Options clientOptions = new Options ();

        serviceClient.engageModule(new QName("rampart"));
       
    String sequenceKey = "sequence4";
    String acksTo = serviceClient.getMyEPR(Constants.TRANSPORT_HTTP).getAddress();
   
    setUpOptions(clientOptions, sequenceKey,acksTo);
View Full Code Here

        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

        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

           
            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

        }

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

    /**
     * @param result
View Full Code Here

    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

    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

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.