definition.addNamespace("soap12", "http://schemas.xmlsoap.org/wsdl/soap12/");
} else {
definition.addNamespace("soap", "http://schemas.xmlsoap.org/wsdl/soap/");
}
definition.addNamespace("wsdl", "http://schemas.xmlsoap.org/wsdl/");
definition.addNamespace("xs", SCHEMA_NS);
String namespaceURI = name.getNamespaceURI();
definition.setTargetNamespace(namespaceURI);
definition.setQName(new QName(namespaceURI, name.getLocalPart() + "Service", name.getPrefix()));
definition.addNamespace(name.getPrefix(), namespaceURI);