Package javax.xml.ws

Examples of javax.xml.ws.WebEndpoint


                    // TODO: report a reasonable error message
                    throw new WebServiceException(e);
                }

                for (Method method : sc.getDeclaredMethods()) {
                    WebEndpoint webEndpoint = method.getAnnotation(WebEndpoint.class);
                    if (webEndpoint != null) {
                        String endpointName = webEndpoint.name();
                        QName portQName = new QName(tns, endpointName);
                        portQNames.add(portQName);
                    }
                    Class<?> seiClazz = method.getReturnType();
                    if (seiClazz!=void.class) {
View Full Code Here


     * @param mdc    - <code>MethodDescriptionComposite</code>
     * @param method - <code>Method</code>
     */
    private void attachWebEndpointAnnotation(MethodDescriptionComposite mdc, Method
            method) {
        WebEndpoint webEndpoint = (WebEndpoint)ConverterUtils.getAnnotation(
                WebEndpoint.class, method);
        if (webEndpoint != null) {
            WebEndpointAnnot weAnnot = WebEndpointAnnot.createWebEndpointAnnotImpl();
            weAnnot.setName(webEndpoint.name());
            mdc.setWebEndpointAnnot(weAnnot);
        }
    }
View Full Code Here

   * @param mdc - <code>MethodDescriptionComposite</code>
   * @param method - <code>Method</code>
   */
  private void attachWebEndpointAnnotation(MethodDescriptionComposite mdc, Method
      method) {
    WebEndpoint webEndpoint = (WebEndpoint) ConverterUtils.getAnnotation(
        WebEndpoint.class, method);
    if(webEndpoint != null) {
      WebEndpointAnnot weAnnot = WebEndpointAnnot.createWebEndpointAnnotImpl();
      weAnnot.setName(webEndpoint.name());
      mdc.setWebEndpointAnnot(weAnnot);
    }
  }
View Full Code Here

                    setProperties((BindingProvider)proxy, ((QName)arguments[0]).getLocalPart());
                }
            }
        } else if (method.getName().startsWith("get")) {
            // it's a generated get<PortName>() method
            WebEndpoint endpoint = method.getAnnotation(WebEndpoint.class);
            setProperties((BindingProvider)proxy, endpoint.name());
        } else if (method.getName().equals("createDispatch")) {
            // it's one of createDispatch() methods
            setProperties((BindingProvider)proxy, ((QName)arguments[0]).getLocalPart());
        }
               
View Full Code Here

        }

        clientProxy = null;
        for (Method m : clientCls.getMethods())
        {
            WebEndpoint we = m.getAnnotation(WebEndpoint.class);

            if (we != null && we.name().equals(port) && m.getParameterTypes().length == 0)
            {
                clientProxy = (BindingProvider) m.invoke(s, new Object[0]);
                break;
            }
        }
View Full Code Here

    private String getPortClass(Endpoint ep, Class serviceClass)
                                            throws Exception {
       
        for(Method m : serviceClass.getMethods()) {
            WebEndpoint webEP = (WebEndpoint)
                m.getAnnotation(WebEndpoint.class);
            if(webEP == null || webEP.name() == null ||
                    webEP.name().length() == 0) {
                continue;
            }
            String getPortMethodName = "get" +
                    JAXBRIContext.mangleNameToClassName(webEP.name());
            Method getPortMethod =
                    serviceClass.getMethod(getPortMethodName, (Class[])null);
            return getPortMethod.getReturnType().getName();
        }
        return null;
View Full Code Here

    private String getPortClass(Endpoint ep, Class serviceClass)
                                            throws Exception {
       
        for(Method m : serviceClass.getMethods()) {
            WebEndpoint webEP = (WebEndpoint)
                m.getAnnotation(WebEndpoint.class);
            if(webEP == null || webEP.name() == null ||
                    webEP.name().length() == 0) {
                continue;
            }
            String getPortMethodName = "get" +
                    JAXBRIContext.mangleNameToClassName(webEP.name());
            Method getPortMethod =
                    serviceClass.getMethod(getPortMethodName, (Class[])null);
            return getPortMethod.getReturnType().getName();
        }
        return null;
View Full Code Here

    private String getPortClass(Endpoint ep, Class serviceClass)
                                            throws Exception {
        String pkg = serviceClass.getPackage().getName();
        for(Method m : serviceClass.getMethods()) {
            WebEndpoint webEP = (WebEndpoint)
                m.getAnnotation(WebEndpoint.class);
            if(webEP == null || webEP.name() == null ||
                    webEP.name().length() == 0) {
                continue;
            }
            String getPortMethodName = "get" +
                    JAXBRIContext.mangleNameToClassName(webEP.name());
            Method getPortMethod =
                    serviceClass.getMethod(getPortMethodName, (Class[])null);
            return getPortMethod.getReturnType().getName();
        }
        return null;
View Full Code Here

    private String getPortClass(Endpoint ep, Class serviceClass)
                                            throws Exception {
       
        for(Method m : serviceClass.getMethods()) {
            WebEndpoint webEP = (WebEndpoint)
                m.getAnnotation(WebEndpoint.class);
            if(webEP == null || webEP.name() == null ||
                    webEP.name().length() == 0) {
                continue;
            }
            String getPortMethodName = "get" +
                    JAXBRIContext.mangleNameToClassName(webEP.name());
            Method getPortMethod =
                    serviceClass.getMethod(getPortMethodName, (Class[])null);
            return getPortMethod.getReturnType().getName();
        }
        return null;
View Full Code Here

                    // TODO: report a reasonable error message
                    throw new WebServiceException(e);
                }

                for (Method method : sc.getDeclaredMethods()) {
                    WebEndpoint webEndpoint = method.getAnnotation(WebEndpoint.class);
                    if (webEndpoint != null) {
                        String endpointName = webEndpoint.name();
                        QName portQName = new QName(tns, endpointName);
                        portQNames.add(portQName);
                    }
                    Class<?> seiClazz = method.getReturnType();
                    if (seiClazz!=void.class) {
View Full Code Here

TOP

Related Classes of javax.xml.ws.WebEndpoint

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.