Examples of WebServiceEndpoint


Examples of com.sun.enterprise.deployment.WebServiceEndpoint

    private static String getAppCtxt(Map map) {

        String rvalue = null;

        WebServiceEndpoint wse =
            (WebServiceEndpoint) map.get(PipeConstants.SERVICE_ENDPOINT);

        // endpoint
        if (wse != null) {
View Full Code Here

Examples of com.sun.enterprise.deployment.WebServiceEndpoint

            info.getMap().put(PipeConstants.WSDL_MODEL,model);
        }
    }

    private String ejbName() {
  WebServiceEndpoint wSE = (WebServiceEndpoint)
      getProperty(PipeConstants.SERVICE_ENDPOINT);
  return (wSE == null ? "unknown" : wSE.getEjbComponentImpl().getName());
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.WebServiceEndpoint

        boolean writeModule = !endpoints.isEmpty();
       
        for(Iterator endpointIter = endpoints.iterator();
            endpointIter.hasNext();) {
           
            WebServiceEndpoint nextEndpoint = (WebServiceEndpoint)
            endpointIter.next();
            WebComponentDescriptor webComp = nextEndpoint.getWebComponentImpl();
            String servletImplClass = nextEndpoint.getServletImplClass();
            if( !nextEndpoint.hasServletImplClass() ) {
                throw new Exception(
                localStrings.getStringWithDefault(
                "enterprise.deployment.backend.cannot_find_servlet",
                "Runtime settings error.  Cannot find servlet-impl-class for endpoint {0} ",
                new Object[] {nextEndpoint.getEndpointName()}));
            }
           
            if( !nextEndpoint.getWebService().hasFilePublishing() ) {
                // @@@ add security attributes as well????
                String publishingUri = nextEndpoint.getPublishingUri();
                String publishingUrlPattern =
                (publishingUri.charAt(0) == '/') ?
                publishingUri : "/" + publishingUri + "/*";
                webComp.addUrlPattern(publishingUrlPattern);
            }
View Full Code Here

Examples of com.sun.enterprise.deployment.WebServiceEndpoint

            // already set.
            for(Iterator ports = serviceRef.getPortsInfo().iterator(); ports.hasNext();) {
                ServiceRefPortInfo portInfo = (ServiceRefPortInfo) ports.next();
               
                if( portInfo.isLinkedToPortComponent() ) {
                    WebServiceEndpoint linkedPortComponent = portInfo.getPortComponentLink();
                   
                    if (linkedPortComponent==null) {
                        throw new GeneratorException(localStrings.getLocalString(
             "enterprise.webservice.componentlinkunresolved",
                           "The port-component-link {0} cannot be resolved",
                           new Object[] {portInfo.getPortComponentLinkName()}));
                    }
                    WsUtil wsUtil = new WsUtil();
                    WebServerInfo wsi = wsUtil.getWebServerInfo(context.getDeploymentRequest());
                    URL rootURL = wsi.getWebServerRootURL(linkedPortComponent.isSecure());
                    URL actualAddress = linkedPortComponent.composeEndpointAddress(rootURL);
                    if(jaxwsClient) {
                        portInfo.addStubProperty(javax.xml.ws.BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                                actualAddress.toExternalForm());
                    } else {
                        portInfo.addStubProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, actualAddress.toExternalForm());
                    }
                    if (serviceRef.getBundleDescriptor().getModuleType().equals(ModuleType.CAR)) {
                        wsdlOverride = serviceRef.getWsdlOverride();
      if (wsdlOverride!=null) {
                            wsdlOverriden = true;
                            serviceRef.setWsdlOverride(linkedPortComponent.getWebService().getWsdlFileUrl());
      }
                    }
                }
            }
View Full Code Here

Examples of com.sun.enterprise.tools.common.dd.WebserviceEndpoint

            // all end points for this servlet
            WebserviceEndpoint[] webSvcEps = sLet.getWebserviceEndpoint();

            for ( int wsCnt = 0; wsCnt < webSvcEps.length; wsCnt++) {
                WebserviceEndpoint webSvc = webSvcEps[wsCnt];

                // context root for web service endpoint
                String ctxRoot = sunWebApp.getContextRoot();
                String uriInConfig = getUriInDomainConfig(appId);
                if (uriInConfig != null) {
                    ctxRoot = uriInConfig;
                }
                String uri;
                String wsUri =  webSvc.getEndpointAddressUri();
                if ((wsUri != null) && (wsUri.length() > 0)
                                    && (wsUri.charAt(0) != '/')) {
                    wsUri = "/" + wsUri;   
                }

                // FIXME: Do we need to read domain.xml stand alone module?
                if (ctxRoot != null) {
                    uri = ctxRoot + wsUri;
                } else {
                    uri = wsUri;
                }

                boolean isSec = false;
                String trans = webSvc.getTransportGuarantee();
                if (( trans != null) && ("NONE".equals(trans) == false)) {
                    isSec = true;
                } else if ((webSvc.getLoginConfig() != null) ||
                    (webSvc.getMessageSecurityBinding() != null)) {
                    isSec = true;
                }
                // web service uri, endpoint name and servlet impl class
                WebServiceDescrInfo wsdInfo =
                    new WebServiceDescrInfo(webSvc.getPortComponentName(),
                                       uri, webSvc.getServletImplClass(),isSec);

                wsMap.put(wsdInfo.getName(),wsdInfo);
            }
       }
View Full Code Here

Examples of com.sun.enterprise.tools.common.dd.WebserviceEndpoint

            // all web service endpoints for this ejb
            WebserviceEndpoint[] webSvcEps = ejb.getWebserviceEndpoint();

            for ( int wsCnt = 0; wsCnt < webSvcEps.length; wsCnt++) {
                WebserviceEndpoint webSvc = webSvcEps[wsCnt];

                boolean isSec = false;
                String trans = webSvc.getTransportGuarantee();
                if (( trans != null) && ("NONE".equals(trans) == false)) {
                    isSec = true;
                } else if ((webSvc.getLoginConfig() != null) ||
                    (webSvc.getMessageSecurityBinding() != null)) {
                    isSec = true;
                }
                // uri
                WebServiceDescrInfo wsdInfo = new
                    WebServiceDescrInfo(webSvc.getPortComponentName(),
                        webSvc.getEndpointAddressUri(),
                        webSvc.getTieClass(), isSec);

                wsMap.put(wsdInfo.getName(),wsdInfo);
            }
        }
View Full Code Here

Examples of com.sun.enterprise.tools.common.dd.WebserviceEndpoint

    // Validating property principalName
    if (getPrincipalName() != null) {
    }
    // Validating property webserviceEndpoint
    for (int _index = 0; _index < sizeWebserviceEndpoint(); ++_index) {
      WebserviceEndpoint element = getWebserviceEndpoint(_index);
      if (element != null) {
        element.validate();
      }
    }
  }
View Full Code Here

Examples of org.apache.openejb.jee.sun.WebserviceEndpoint

                    // set the ejb bind location
                    ServiceImplBean bean = port.getServiceImplBean();
                    if (bean != null && bean.getEjbLink() != null) {
                        Map<String, WebserviceEndpoint> endpoints = endpointMap.get(bean.getEjbLink());
                        if (endpoints != null) {
                            WebserviceEndpoint endpoint = endpoints.get(port.getPortComponentName());
                            if (endpoint != null && endpoint.getEndpointAddressUri() != null) {
                                port.setLocation(endpoint.getEndpointAddressUri());
                            }
                        }
                    }
                }
            }
View Full Code Here

Examples of org.jboss.as.console.client.shared.subsys.ws.model.WebServiceEndpoint

                    List<ModelNode> modelNodes = response.get(RESULT).asList();

                    for(ModelNode node : modelNodes)
                    {
                        ModelNode value = node.get(RESULT).asObject();
                        WebServiceEndpoint endpoint = factory.webServiceEndpoint().as();
                        endpoint.setName(value.get("name").asString());
                        endpoint.setClassName(value.get("class").asString());
                        endpoint.setContext(value.get("context").asString());
                        endpoint.setType(value.get("type").asString());
                        endpoint.setWsdl(value.get("wsdl-url").asString());

                        endpoints.add(endpoint);
                    }
                }
View Full Code Here

Examples of org.jboss.as.console.client.shared.subsys.ws.model.WebServiceEndpoint

                                try {
                                    List<ModelNode> modelNodes = response.get(RESULT).asList();
                                    for(ModelNode node : modelNodes)
                                    {
                                        ModelNode value = node.get(RESULT).asObject();
                                        WebServiceEndpoint endpoint = factory.webServiceEndpoint().as();
                                        endpoint.setName(value.get("name").asString());
                                        endpoint.setClassName(value.get("class").asString());
                                        endpoint.setContext(value.get("context").asString());
                                        endpoint.setType(value.get("type").asString());
                                        endpoint.setWsdl(value.get("wsdl-url").asString());

                                        addIfNotExists(endpoint);
                                    }
                                } catch (Throwable e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.