request = TestUtils.createMessage(MessageFormat.format(MSG2, address, UUID.randomUUID(), ADD_REQUEST_ACTION, 5));
response = dispatch.invoke(request);
testAddResponse(response, 10, false);
// make a call with Addressing support and MTOM
dispatch = service.createDispatch(PORT, SOAPMessage.class, Service.Mode.MESSAGE, new MTOMFeature());
request = TestUtils.createMessage(MessageFormat.format(MSG2, address, UUID.randomUUID(), ADD_REQUEST_ACTION, 10));
response = dispatch.invoke(request);
testAddResponse(response, 20, true);
EndpointReference epr = null;
// make a call with Addressing support using EPR
epr = createEPR();
service.createDispatch(epr, SOAPMessage.class, Service.Mode.MESSAGE);
request = TestUtils.createMessage(MessageFormat.format(MSG2, address, UUID.randomUUID(), ADD_REQUEST_ACTION, 15));
response = dispatch.invoke(request);
testAddResponse(response, 30, false);
// make a call with Addressing support using EPR and MTOM
epr = createEPR();
service.createDispatch(epr, SOAPMessage.class, Service.Mode.MESSAGE, new MTOMFeature());
request = TestUtils.createMessage(MessageFormat.format(MSG2, address, UUID.randomUUID(), ADD_REQUEST_ACTION, 20));
response = dispatch.invoke(request);
testAddResponse(response, 40, true);
}