req.setAttribute("soapdef", soapString);
req.setAttribute("filedef", fileName);
req.setAttribute(svc + "Selected", "selected");
// Create an instance of the tests client
SampleMTOMTests client = new SampleMTOMTests();
System.out.println(">>SERVLET: Filename = " + fileName);
// Call the test class
try {
client.setOptions(uriString, (0 != soapString.length()), fileName);
if (svc.equals("Dispatch")) {
result = client.testMtomWithDispatch(result);
} else {
result = client.testMtomWithProxy(result, getServletConfig().getServletContext().getResource("/WEB-INF/wsdl/ImageDepot12.wsdl"));
}
}
catch (Exception e) {
result = result.concat("ERROR: SERVLET EXCEPTION " + e);
System.out.println(">>SERVLET: EXCEPTION " + e);