Package com.sun.enterprise.tools.common.dd.webservice

Examples of com.sun.enterprise.tools.common.dd.webservice.PortComponentType


                } catch (Exception e ) {
                  //_logger.log(Level.FINE,"Error reading dd file contents", e);
                }

                // get all ports inside this web service.
                PortComponentType pts[] = wsdt.getPortComponent();
                for (int portCnt =0; portCnt < pts.length; portCnt++) {
                    PortComponentType pt = pts[portCnt];
                    ServiceImplBeanType beanType = pt.getServiceImplBean();
                   
                    WebServiceDescrInfo wsDescrInfo = null;
                    implName = beanType.getServletLink();
                    if ( implName != null) {
                        implType = "SERVLET";

                        // cache uri and sevlet impl class for all endpoints
                        if (wsWebMap == null) {
                            wsWebMap = getWebServiceInfoForWebModule(moduleInfo,
                                appId, bundleName, webservices);
                        }

                        // uri, servlet impl class from cache
                        if (wsWebMap != null) {
                            wsDescrInfo = (WebServiceDescrInfo) wsWebMap.get(
                                (String)pt.getPortComponentName());
                        }
                    } else  {
                        implName = beanType.getEjbLink();
                        if ( implName != null) {
                            implType = "EJB";

                            // cache uri
                            if (wsEjbMap == null) {
                                wsEjbMap = getWebServiceInfoForEjbModule(
                                    moduleInfo, appId, bundleName, webservices);
                            }

                            // uri
                            if ( wsEjbMap != null) {
                                wsDescrInfo = (WebServiceDescrInfo)wsEjbMap.get(
                                    (String)pt.getPortComponentName());
                            }
                        } else {
                            // throw warning, unknown type set
                        }
                    }
                    if (wsDescrInfo != null) {
                        uri = wsDescrInfo.getUri();
                        implClass = wsDescrInfo.getImplClass();
                    }

                    final String wsFile = (String) propMap.get(
                        WebServiceInfoProvider.WS_XML_PROP_NAME);

                    // port contains name-space:port-name
                    // get the second part of this string (after the ":")
                    String port = null;
                    StringTokenizer st = new StringTokenizer(
                    pt.getWsdlPort().getLocalPart(),
                    ":");
                    while(st.hasMoreTokens()) {
                        port = st.nextToken();
                    }

                    final String serviceUrl =
                    getServiceURL(wsdl,port) ;

                    // populate web service endpoint info object
                    WebServiceEndpointInfoImpl wsInfo = new
                        WebServiceEndpointInfoImpl(pt.getPortComponentName(),
                            uri, appId, bundleName, isAppStandAloneModule,
                            wsdlFile, mapping, wsFile,implType,implName,
                            implClass, serviceUrl, wsDescrInfo.isSecure());

                    wsInfo.putField(
View Full Code Here

TOP

Related Classes of com.sun.enterprise.tools.common.dd.webservice.PortComponentType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.