Examples of addMessageContext()


Examples of org.apache.axis2.client.OperationClient.addMessageContext()

            }
            final OperationClient operationClient = cached._client.createClient(isTwoWay ? ServiceClient.ANON_OUT_IN_OP
                    : ServiceClient.ANON_OUT_ONLY_OP);
            operationClient.setOptions(options);

            operationClient.addMessageContext(mctx);

            if (isTwoWay) {
                final String mexId = odeMex.getMessageExchangeId();
                final Operation operation = odeMex.getOperation();
View Full Code Here

Examples of org.apache.axis2.client.OperationClient.addMessageContext()

       
        // Allow privileged access to read properties. Requires PropertiesPermission read in security policy.
        try {
            AccessController.doPrivileged(new PrivilegedExceptionAction<Object>() {
                public Object run() throws AxisFault {
                    operationClient.addMessageContext(requestMC);
                    return null;
                }
            });
        } catch (PrivilegedActionException e) {
            throw (AxisFault)e.getException();
View Full Code Here

Examples of org.apache.axis2.client.OperationClient.addMessageContext()


            ServiceClient client = getCachedServiceClient().client;
            final OperationClient operationClient = client.createClient(isTwoWay ? ServiceClient.ANON_OUT_IN_OP
                    : ServiceClient.ANON_OUT_ONLY_OP);
            operationClient.addMessageContext(mctx);
            // this Options can be alter without impacting the ServiceClient options (which is a requirement)
            Options operationOptions = operationClient.getOptions();
            operationOptions.setAction(mctx.getSoapAction());
            operationOptions.setTo(axisEPR);
View Full Code Here

Examples of org.apache.axis2.client.OperationClient.addMessageContext()

                     Else we assume that the epr is not changed by the process.
                     In this case there's a limitation we cannot invoke the epr in the wsdl
                     (by assingning that epr by partnerlink assign) if there is a endpoint
                     configuration available for that particular service
                    */
                    opClient.addMessageContext(mctx);
                    Options operationOptions = opClient.getOptions();

                    if (partnerEndpoint.isAddressingEnabled()) {
                        //Currently we set the action manually, but this should be handled by
                        // addressing module it-self?
View Full Code Here

Examples of org.apache.axis2.client.OperationClient.addMessageContext()

            SOAPFactory soapFactory = OMAbstractFactory.getSOAP11Factory();
            SOAPEnvelope soapEnvelope = soapFactory.getDefaultEnvelope();

            outMsgCtx.setEnvelope(soapEnvelope);
            opClient.addMessageContext(outMsgCtx);
            opClient.execute(true);

            MessageContext inMsgtCtx = opClient.getMessageContext("In");
            SOAPEnvelope response = inMsgtCtx.getEnvelope();
        } catch (AxisFault axisFault) {
View Full Code Here

Examples of org.apache.axis2.client.OperationClient.addMessageContext()

                        msg,
                        operation);
                String mexEndpointUrl = this.mexEndPointUrl;
                axisEPR = new org.apache.axis2.addressing.EndpointReference(mexEndpointUrl);

                opClient.addMessageContext(mctx);
                // this Options can be alter without impacting the ServiceClient options (which is a requirement)
                Options operationOptions = opClient.getOptions();

                operationOptions.setAction(mctx.getSoapAction());
                operationOptions.setTo(axisEPR);
View Full Code Here

Examples of org.apache.axis2.client.OperationClient.addMessageContext()

        populateSOAPBody(soapEnvelope, partnerRoleMessageExchange);
        serviceClient.addHeadersToEnvelope(soapEnvelope);
        messageContext.setEnvelope(soapEnvelope);

        operationClient.addMessageContext(messageContext);

        String mexEndpointUrl =
                            ((MutableEndpoint) partnerRoleMessageExchange.getEndpointReference())
                                    .getUrl();
        if(!mexEndpointUrl.equals(getServiceLocation(getPortDefinition()))){
View Full Code Here

Examples of org.apache.axis2.client.OperationClient.addMessageContext()

                __log.debug("Message: " + soapEnv);
            }

            final OperationClient operationClient = client.createClient(isTwoWay ? ServiceClient.ANON_OUT_IN_OP
                    : ServiceClient.ANON_OUT_ONLY_OP);
            operationClient.addMessageContext(mctx);
            // this Options can be alter without impacting the ServiceClient options (which is a requirement)
            Options operationOptions = operationClient.getOptions();

            // provide HTTP credentials if any
            AuthenticationHelper.setHttpAuthentication(odeMex, operationOptions);
View Full Code Here

Examples of org.apache.axis2.client.OperationClient.addMessageContext()

        request.addChild(imageId);
        payload.addChild(request);
        env.getBody().addChild(payload);
        mc.setEnvelope(env);

        mepClient.addMessageContext(mc);
        mepClient.execute(true);
        MessageContext response = mepClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);

        SOAPBody body = response.getEnvelope().getBody();
        String imageContentId = body.
View Full Code Here

Examples of org.apache.axis2.client.OperationClient.addMessageContext()

        mc.setProperty(Constants.Configuration.CHARACTER_SET_ENCODING, options.getCharset());
        mc.setServiceContext(serviceClient.getServiceContext());
        if (metrics != null) {
            mc.setProperty(BaseConstants.METRICS_COLLECTOR, metrics);
        }
        mepClient.addMessageContext(mc);
        mepClient.execute(block);
//        mepClient.complete(mc);
        return resultMessageLabel == null ? null : mepClient.getMessageContext(resultMessageLabel);
    }
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.