Examples of InOutMEPClient


Examples of org.apache.axis2.client.InOutMEPClient

        UtilServer.stop();
    }


    public void sendMessageWithHeader(SOAPEnvelope envelope) throws AxisFault {
        InOutMEPClient inOutMC = null;

        try {
            ConfigurationContext configContext = Utils.getNewConfigurationContext(org.apache.axis2.Constants.TESTING_REPOSITORY);

            ServiceContext serviceContext =
                    service.getParent().getServiceGroupContext(configContext).getServiceContext(service.getName().getLocalPart());
            inOutMC = new InOutMEPClient(serviceContext);

            MessageContext msgctx = new MessageContext(serviceContext.getConfigurationContext());

            msgctx.setEnvelope(envelope);

            Options options = new Options();
            inOutMC.setClientOptions(options);
            options.setTo(targetEPR);
            options.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);

            MessageContext result =
                    inOutMC.invokeBlocking(
                            serviceContext.getAxisService().getOperation(operationName),
                            msgctx);
        } catch (Exception e) {
            e.printStackTrace();
            fail("Exception Occurred !! ." + e.getMessage());
            throw new AxisFault(e);
        } finally {
            inOutMC.close();
        }
//        fail("Fix Me Deepal");
    }
View Full Code Here

Examples of org.apache.axis2.clientapi.InOutMEPClient

        UtilServer.stop();
    }


    public void sendMessageWithHeader(SOAPEnvelope envelope) throws AxisFault {
        InOutMEPClient inOutMC = null;

        try {
            ConfigurationContext configContext = Utils.getNewConfigurationContext(org.apache.axis2.Constants.TESTING_REPOSITORY);

            ServiceContext serviceContext =
                    service.getParent().getServiceGroupContext(configContext).getServiceContext(service.getName().getLocalPart());
            inOutMC = new InOutMEPClient(serviceContext);

            MessageContext msgctx = new MessageContext(serviceContext.getEngineContext());

            msgctx.setEnvelope(envelope);

            inOutMC.setTo(targetEPR);
            inOutMC.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);

            MessageContext result =
                    inOutMC.invokeBlocking(
                            serviceContext.getServiceConfig().getOperation(operationName),
                            msgctx);
        } catch (Exception e) {
            e.printStackTrace();
            fail("Exception Occurred !! ." + e.getMessage() );
            throw new AxisFault(e);
        } finally {
            inOutMC.close();
        }
//        fail("Fix Me Deepal");
    }
View Full Code Here

Examples of org.apache.axis2.clientapi.InOutMEPClient

        UtilServer.stop();
    }
   
   
    public void sendMessageWithHeader(SOAPEnvelope envelope) throws AxisFault{
        InOutMEPClient inOutMC;
        ServiceContext serviceContext =
            UtilServer.getConfigurationContext().createServiceContext(service.getName());
        inOutMC = new InOutMEPClient(serviceContext);
        try{
            MessageContext msgctx = new MessageContext(serviceContext.getEngineContext());

            msgctx.setEnvelope(envelope);

            inOutMC.setTo(targetEPR);
            inOutMC.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);

            MessageContext result =
                inOutMC.invokeBlocking(
                    serviceContext.getServiceConfig().getOperation(operationName),
                    msgctx);
        }finally{
            inOutMC.close();
        }
    }
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.