// Get the WS marker
IWebServiceMarker marker = sessionBean.getWebServiceMarker();
String name = marker.getName();
// Use info from webservices.xml if available
IWebservices webservicesDD = this.deployment.getEjbJarArchiveMetadata().getWebservices12();
IPortComponent portComponent = null;
if (webservicesDD != null) {
// Resolve the port-component associated with this endpoint
portComponent = webservicesDD.findPortComponent(beanName);
if ((portComponent != null) && (name == null)) {
// Find the port name
name = portComponent.getName();
}