/* 145 */ initEndpointEncodingStyle(sepMetaData);
/* */
/* 147 */ initEndpointAddress(dep, sepMetaData);
/* */
/* 149 */ EJBArchiveMetaData apMetaData = (EJBArchiveMetaData)dep.getAttachment(EJBArchiveMetaData.class);
/* 150 */ JSEArchiveMetaData webMetaData = (JSEArchiveMetaData)dep.getAttachment(JSEArchiveMetaData.class);
/* 151 */ if (apMetaData != null)
/* */ {
/* 153 */ wsMetaData.setSecurityDomain(apMetaData.getSecurityDomain());
/* */
/* 156 */ String wsdName = serviceMetaData.getWebserviceDescriptionName();
/* 157 */ String wsdlPublishLocation = apMetaData.getWsdlPublishLocationByName(wsdName);
/* 158 */ serviceMetaData.setWsdlPublishLocation(wsdlPublishLocation);
/* */
/* 161 */ EJBMetaData bmd = apMetaData.getBeanByEjbName(linkName);
/* 162 */ if (bmd == null) {
/* 163 */ throw new WSException("Cannot obtain UnifiedBeanMetaData for: " + linkName);
/* */ }
/* 165 */ String configName = apMetaData.getConfigName();
/* 166 */ String configFile = apMetaData.getConfigFile();
/* 167 */ if ((configName != null) || (configFile != null)) {
/* 168 */ sepMetaData.setConfigName(configName, configFile);
/* */ }
/* 170 */ EJBSecurityMetaData smd = bmd.getSecurityMetaData();
/* 171 */ if (smd != null)
/* */ {
/* 173 */ String authMethod = smd.getAuthMethod();
/* 174 */ sepMetaData.setAuthMethod(authMethod);
/* 175 */ String transportGuarantee = smd.getTransportGuarantee();
/* 176 */ sepMetaData.setTransportGuarantee(transportGuarantee);
/* 177 */ Boolean secureWSDLAccess = Boolean.valueOf(smd.getSecureWSDLAccess());
/* 178 */ sepMetaData.setSecureWSDLAccess(secureWSDLAccess.booleanValue());
/* */ }
/* */ }
/* 181 */ else if (webMetaData != null)
/* */ {
/* 183 */ wsMetaData.setSecurityDomain(webMetaData.getSecurityDomain());
/* */
/* 185 */ String targetBean = (String)webMetaData.getServletClassNames().get(linkName);
/* 186 */ sepMetaData.setServiceEndpointImplName(targetBean);
/* */
/* 189 */ String wsdName = serviceMetaData.getWebserviceDescriptionName();
/* 190 */ String wsdlPublishLocation = webMetaData.getWsdlPublishLocationByName(wsdName);
/* 191 */ serviceMetaData.setWsdlPublishLocation(wsdlPublishLocation);
/* */
/* 193 */ String configName = webMetaData.getConfigName();
/* 194 */ String configFile = webMetaData.getConfigFile();
/* 195 */ if ((configName != null) || (configFile != null)) {
/* 196 */ sepMetaData.setConfigName(configName, configFile);
/* */ }
/* 198 */ initTransportGuaranteeJSE(dep, sepMetaData, linkName);
/* */ }