public static EndpointReferenceType getEndpointReference(WSDLManager manager,
Class<?> implementorClass) {
WebService ws = getWebServiceAnnotation(implementorClass);
WebServiceProvider wsp = null;
if (null == ws) {
wsp = implementorClass.getAnnotation(WebServiceProvider.class);
if (null == wsp) {
return null;
}
}
EndpointReferenceType reference = new EndpointReferenceType();
reference.setMetadata(new MetadataType());
String serviceName = (null != ws) ? ws.serviceName() : wsp.serviceName();
String targetNamespace = (null != ws) ? ws.targetNamespace() : wsp.targetNamespace();
String portName = (null != ws) ? ws.portName() : wsp.portName();
String url = (null != ws) ? ws.wsdlLocation() : wsp.wsdlLocation();
String className = (null != ws) ? ws.endpointInterface() : null;
QName portTypeName = null;
if (null != className && !"".equals(className)) {
Class<?> seiClazz = null;