}
protected XmlDocument createDOMDocuementForLocalTestCase(WSDLBinding binding) {
WSDLInterface boundInterface = binding.getBoundInterface();
XmlDocument doc = new XmlDocument();
Element rootElement = doc.createElement("class");
String serviceXMLPath = configuration.getPackageName().replace('.','/')+TEST_PACKAGE_NAME_SUFFIX.replace('.','/')+"/testservice.xml";
addAttribute(doc,"package",configuration.getPackageName()+TEST_PACKAGE_NAME_SUFFIX,rootElement);
addAttribute(doc, "servicexmlpath", serviceXMLPath, rootElement);
addAttribute(doc, "implpackage", configuration.getPackageName(), rootElement);
String localPart = boundInterface.getName().getLocalPart();
addAttribute(doc,"name",localPart+LOCAL_TEST_SUFFIX,rootElement);
addAttribute(doc,"namespace",boundInterface.getName().getNamespaceURI(),rootElement);
addAttribute(doc,"interfaceName",localPart,rootElement);
addAttribute(doc,"callbackname",localPart + CALL_BACK_HANDLER_SUFFIX,rootElement);
addAttribute(doc,"stubname",localPart + STUB_SUFFIX,rootElement);
addAttribute(doc, "address", "http://localhost:"+Constants.TEST_PORT+"/services/"+boundInterface.getName().getLocalPart()+TEST_SERVICE_CLASS_NAME_SUFFIX, rootElement);
fillSyncAttributes(doc, rootElement);
loadOperations(boundInterface, doc, rootElement);
doc.appendChild(rootElement);
return doc;
}