initEndpointEncodingStyle(sepMetaData);
initEndpointAddress(dep, sepMetaData);
initEndpointBinding(wsdlEndpoint, sepMetaData);
EJBArchiveMetaData apMetaData = dep.getAttachment(EJBArchiveMetaData.class);
JSEArchiveMetaData webMetaData = dep.getAttachment(JSEArchiveMetaData.class);
if (apMetaData != null)
{
wsMetaData.setSecurityDomain(apMetaData.getSecurityDomain());
// Copy the wsdl publish location from jboss.xml
String wsdName = serviceMetaData.getWebserviceDescriptionName();
String wsdlPublishLocation = apMetaData.getWsdlPublishLocationByName(wsdName);
serviceMetaData.setWsdlPublishLocation(wsdlPublishLocation);
// Copy <port-component> meta data
EJBMetaData bmd = apMetaData.getBeanByEjbName(linkName);
if (bmd == null)
throw new WSException("Cannot obtain UnifiedBeanMetaData for: " + linkName);
String configName = apMetaData.getConfigName();
String configFile = apMetaData.getConfigFile();
if (configName != null || configFile != null)
sepMetaData.setConfigName(configName, configFile);
EJBSecurityMetaData smd = bmd.getSecurityMetaData();
if (smd != null)