Service endpoint = new Service(serviceInfo);
endpoint.setName(qName);
setProperties(endpoint, properties);
final ObjectInvoker invoker = new ObjectInvoker(ScopePolicyEditor.toScopePolicy(theScope));
endpoint.setInvoker(invoker);
endpoint.setFaultSerializer(new SoapFaultSerializer());
endpoint.setWSDLWriter(new WSDLBuilderAdapter(getWsdlBuilderFactory(), endpoint, transportManager));