Package com.sun.appserv.management.ext.wsmgmt

Examples of com.sun.appserv.management.ext.wsmgmt.WebServiceEndpointInfo


     * @param name  Fully qualified name of the web service
     *
     * @return WebServiceEndpointInfo for a web service
     */
    public Map getWebServiceInfoMap(String name) {
        WebServiceEndpointInfo wsInfo = getWebServiceInfo(name);
        if (wsInfo == null) {
            return null;
        } else {
            return ((WebServiceEndpointInfoImpl)wsInfo).asMap();
        }
View Full Code Here


        else
            return null;
    }
   
    private WebServiceEndpointInfo getWebServiceInfo(String name) {
        WebServiceEndpointInfo wsInfo = (WebServiceEndpointInfo) wsInfoMap.get(name);
        // call expired, load its descriptors
        // XXX this should be optimized
        if (wsInfo == null) {
            getWebServicesMap();
            wsInfo = (WebServiceEndpointInfo) wsInfoMap.get(name);
View Full Code Here

                    "Key passed to WebServiceEndpointObjectNames must be of type String";
            _logger.log(Level.FINE, msg);
            return null;
        }
       
        WebServiceEndpointInfo wsInfo = getWebServiceInfo( (String)key);
        if ( wsInfo == null) {
            return null;
        } else {
            String implType = wsInfo.getServiceImplType();
            boolean isEjb = false;
            if ( implType.equals("EJB")) {
                isEjb = true;
            }
            String appName = wsInfo.getAppID();
            String modName = wsInfo.getBundleName();
            if(wsInfo.isAppStandaloneModule() == true) {
                // appId is the module name
                modName = appName;
                // J2EE application name is null for stand alone modules
                appName = null;
            }
            return getWSObjectNames(appName,
                    modName, wsInfo.getName(),
                    getWebServiceEndpointContextRoot( (String)key),isEjb, serverName);
        }
    }
View Full Code Here

        if (port == null)
            port = DEFAULT_PORT; // sanity
       
        String wsdl = null;
        String uri = null;
        WebServiceEndpointInfo wsInfo = getWebServiceInfo(webServiceName);
       
        if (wsInfo == null) {
            // should never happen.
            throw new RuntimeException("Could not retreive WebService" +
                    "Information. Cannot publish web service  ");
        } else      {
            uri = wsInfo.getEndpointURI();
        }
        String wsdlurl = "http://" + host + ":"+ port +"/"+ uri+"?wsdl";
        try{
            URL url = new URL(wsdlurl);
            HttpURLConnection connection = (HttpURLConnection)url.openConnection();
View Full Code Here

       
        if ( method.getName().equals( "getWebServiceEndpointInfo" ) )
        {
            final Map<String,Serializable>  m  = TypeCast.asMap( resultIn );
           
            final WebServiceEndpointInfo info =
                WebServiceSupport.mapToWebServiceEndpointInfo( m );
            resultOut   = info;
        }
       
        return resultOut;
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.ext.wsmgmt.WebServiceEndpointInfo

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.