}
protected XmlDocument createDOMDocuementForServiceXML(WSDLBinding binding, boolean forTesting) {
WSDLInterface boundInterface = binding.getBoundInterface();
XmlDocument doc = new XmlDocument();
Element rootElement = doc.createElement("interface");
String localPart = boundInterface.getName().getLocalPart();
if(forTesting){
addAttribute(doc,"package",configuration.getPackageName()+TEST_PACKAGE_NAME_SUFFIX, rootElement);
addAttribute(doc,"name",localPart+TEST_SERVICE_CLASS_NAME_SUFFIX,rootElement);
addAttribute(doc,"servicename",localPart+TEST_SERVICE_CLASS_NAME_SUFFIX,rootElement);
}else{
addAttribute(doc,"package",configuration.getPackageName(), rootElement);
addAttribute(doc,"name",localPart+SERVICE_CLASS_SUFFIX,rootElement);
addAttribute(doc,"servicename",localPart,rootElement);
}
addAttribute(doc,"messagereceiver",localPart+MESSAGE_RECEIVER_SUFFIX,rootElement);
fillSyncAttributes(doc, rootElement);
loadOperations(boundInterface, doc, rootElement);
doc.appendChild(rootElement);
return doc;
}