}
public String registerCallback(W3CEndpointReference w3cRef) {
try {
WSDLManager manager = new WSDLManagerImpl();
EndpointReferenceType callback = VersionTransformer.convertToInternal(w3cRef);
QName interfaceName = EndpointReferenceUtils.getInterfaceName(callback, bus);
QName serviceName = EndpointReferenceUtils.getServiceName(callback, bus);
String address = EndpointReferenceUtils.getAddress(callback);
String portString = EndpointReferenceUtils.getPortName(callback);
QName portName = new QName(serviceName.getNamespaceURI(), portString);
StringBuffer seiName = new StringBuffer();
seiName.append(JAXBUtils.namespaceURIToPackage(interfaceName.getNamespaceURI()));
seiName.append(".");
seiName.append(JAXBUtils.nameToIdentifier(interfaceName.getLocalPart(),
JAXBUtils.IdentifierType.INTERFACE));
Class<?> sei = null;
try {
sei = Class.forName(seiName.toString(),
true, manager.getClass().getClassLoader());
} catch (ClassNotFoundException ex) {
ex.printStackTrace();
}
Service service = Service.create(null, serviceName);