Package org.jboss.soa.esb.testutils.jbr

Examples of org.jboss.soa.esb.testutils.jbr.StaticRequestResponseHandler


        // being invoked by the SOAPClient ("http://localhost:15111/")...
        test_request("soapclient-request-config-02.xml", "http://localhost:15111/", "http://localhost:15112");
    }

    private void test_request(String esbConfig, String wsEndpoint, final String wsdlEndpoint) throws Exception {
        JBRServer wsdlServer = new JBRServer(wsdlEndpoint, new StaticRequestResponseHandler(getClass().getResourceAsStream("request-test-01.wsdl")));
        StaticRequestResponseHandler wsEndpointHandler = new StaticRequestResponseHandler("<response/>");
        JBRServer wsEndpointServer = new JBRServer(wsEndpoint, wsEndpointHandler);

        // Check the SOAP request coming into the Server...
        wsEndpointHandler.setExpectedRequest(getClass().getResourceAsStream("expected-soap-request.xml"));

        wsdlServer.start();
        try {
            wsEndpointServer.start();
            try {
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.testutils.jbr.StaticRequestResponseHandler

Copyright © 2018 www.massapicom. 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.