}
@Test
public void testProxyServerSoap11() throws Exception
{
final Latch latch = new Latch();
TestCxfEventCallback testCxfEventCallback = new TestCxfEventCallback(latch);
FunctionalTestComponent testComponent = (FunctionalTestComponent) getComponent("soap11Flow");
testComponent.setEventCallback(testCxfEventCallback);
String msgEchoOperation1 = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:new=\"http://new.webservice.namespace\">"
+ "<soapenv:Header/>"
+ " <soapenv:Body>"
+ " <new:parameter1>hello world</new:parameter1>"
+ " </soapenv:Body>"
+ "</soapenv:Envelope>";
String msgEchoOperation2 = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:new=\"http://new.webservice.namespace\">"
+ "<soapenv:Header/>"
+ " <soapenv:Body>"
+ " <new:parameter2>hello world</new:parameter2>"
+ " </soapenv:Body>"
+ "</soapenv:Envelope>";
String soapOperation = "EchoOperation1";
MuleMessage response = executeSoap11Call(msgEchoOperation1, soapOperation);
assertTrue(latch.await(1000L, TimeUnit.MILLISECONDS));
String cxfOperationName = testCxfEventCallback.getCxfOperationName();
assertEquals(soapOperation, cxfOperationName);
assertTrue(response.getPayloadAsString().contains("<new:parameter1"));
assertTrue(response.getPayloadAsString().contains("hello world"));
soapOperation = "EchoOperation2";
response = executeSoap11Call(msgEchoOperation2, soapOperation);
assertTrue(latch.await(1000L, TimeUnit.MILLISECONDS));
cxfOperationName = testCxfEventCallback.getCxfOperationName();
assertEquals(soapOperation, cxfOperationName);
assertTrue(response.getPayloadAsString().contains("<new:parameter2"));
assertTrue(response.getPayloadAsString().contains("hello world"));
}