@SuppressWarnings("unchecked")
private static void testService(int testServiceId) throws Exception {
URL wsdlUrl = getDefinitionUrl(testServiceId);
Wsdl parser = Wsdl.parse(wsdlUrl);
SoapContext context = SoapContext.builder()
.exampleContent(false)
.build();
for (QName bindingQName : parser.getBindings()) {
String bindingName = bindingQName.getLocalPart();
SoapBuilder builder = parser.binding().name(bindingQName).find();
for (SoapOperation operation : builder.getOperations()) {
String request = builder.buildInputMessage(operation);
String expectedRequest = getExpectedRequest(testServiceId, bindingName, operation.getOperationName());
log.info(String.format("Comparing binding=[%s] operation=[%s]", bindingName, operation.getOperationName()));
log.info("REQUEST:\n" + request);