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;