fail("Validated message with missing message ID!");
}
public void testCheckUsingAdressingOnClient() throws Exception {
// Need to create full description hierarchy to prevent NullPointerExceptions
AxisOperation axisOperation = new OutInAxisOperation(new QName("Temp"));
AxisService axisService = new AxisService("Temp");
AxisConfiguration axisConfiguration = new AxisConfiguration();
axisService.addOperation(axisOperation);
axisConfiguration.addService(axisService);
ConfigurationContext configurationContext = new ConfigurationContext(axisConfiguration);
// Make addressing required using the same property as the AddressingConfigurator on the request
MessageContext request = configurationContext.createMessageContext();
request.setProperty(AddressingConstants.ADDRESSING_REQUIREMENT_PARAMETER, AddressingConstants.ADDRESSING_REQUIRED);
// Create a response to invoke the in handler on
MessageContext response = configurationContext.createMessageContext();
// Link the response to the request message context using the context hierarchy
ServiceGroupContext serviceGroupContext = configurationContext.createServiceGroupContext(axisService.getAxisServiceGroup());
ServiceContext serviceContext = serviceGroupContext.getServiceContext(axisService);
OperationContext opContext = axisOperation.findOperationContext(request, serviceContext);
axisOperation.registerOperationContext(request, opContext);
request.setServiceContext(serviceContext);
response.setServiceContext(serviceContext);
request.setOperationContext(opContext);
response.setOperationContext(opContext);