// 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 {