Examples of WebMethodAnnot


Examples of org.apache.axis2.jaxws.description.builder.WebMethodAnnot

        Iterator<MethodDescriptionComposite> iter = dbc.getMethodDescriptionsList().iterator();

        while (iter.hasNext()) {
            mdc = iter.next();

            WebMethodAnnot wma = mdc.getWebMethodAnnot();
            if (wma != null) {
                if (wma.exclude() == false)
                    return true;
            }
        }

        return false;
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.WebMethodAnnot

        Iterator<MethodDescriptionComposite> iter = dbc.getMethodDescriptionsList().iterator();

        while (iter.hasNext()) {
            mdc = iter.next();

            WebMethodAnnot wma = mdc.getWebMethodAnnot();
            if (wma != null) {
                if (wma.exclude() == false)
                    return true;
            }
        }

        return false;
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.WebMethodAnnot

        //Create a WebMethodAnnot
        String operationName = "echoStringMethod";
        String action = "urn:EchoStringMethod";
        boolean exclude = false;

        WebMethodAnnot webMethodAnnot = WebMethodAnnot.createWebMethodAnnotImpl();
        webMethodAnnot.setOperationName(operationName);
        webMethodAnnot.setAction(action);
        webMethodAnnot.setExclude(exclude);

        //Create the WebParamAnnot
        String WPName = "arg0";
        String WPPartName = "sku";
        String WPTargetNamespace = "http://description.jaxws.axis2.apache.org/";
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.WebMethodAnnot

    private void attachWebMethodAnnotation(MethodDescriptionComposite mdc, Method
            method) {
        WebMethod webMethod = (WebMethod)ConverterUtils.getAnnotation(WebMethod.class,
                                                                      method);
        if (webMethod != null) {
            WebMethodAnnot wmAnnot = WebMethodAnnot.createWebMethodAnnotImpl();
            wmAnnot.setAction(webMethod.action());
            wmAnnot.setExclude(webMethod.exclude());
            wmAnnot.setOperationName(webMethod.operationName());
            mdc.setWebMethodAnnot(wmAnnot);
        }
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.WebMethodAnnot

        Iterator<MethodDescriptionComposite> iter = dbc.getMethodDescriptionsList().iterator();

        while (iter.hasNext()) {
            mdc = iter.next();

            WebMethodAnnot wma = mdc.getWebMethodAnnot();
            if (wma != null) {
                if (wma.exclude() == false)
                    return true;
            }
        }

        return false;
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.WebMethodAnnot

        assertEquals(mdcList.size(), 2);
        MethodDescriptionComposite mdc = mdcList.get(0);
        assertEquals("invoke", mdc.getMethodName());
        assertEquals("java.lang.String", mdc.getReturnType());
        assertNotNull(mdc.getWebMethodAnnot());
        WebMethodAnnot wmAnnot = mdc.getWebMethodAnnot();
        assertEquals("invoke", wmAnnot.operationName());
        mdc = mdcList.get(1);
        assertEquals("invoke2", mdc.getMethodName());
        assertEquals("int", mdc.getReturnType());
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.WebMethodAnnot

    private void attachWebMethodAnnotation(MethodDescriptionComposite mdc, Method
            method) {
        WebMethod webMethod = (WebMethod)ConverterUtils.getAnnotation(WebMethod.class,
                                                                      method);
        if (webMethod != null) {
            WebMethodAnnot wmAnnot = WebMethodAnnot.createWebMethodAnnotImpl();
            wmAnnot.setAction(webMethod.action());
            wmAnnot.setExclude(webMethod.exclude());
            wmAnnot.setOperationName(webMethod.operationName());
            mdc.setWebMethodAnnot(wmAnnot);
        }
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.WebMethodAnnot

    Iterator<MethodDescriptionComposite> iter = dbc.getMethodDescriptionsList().iterator();
   
    while (iter.hasNext()) {
      mdc = iter.next();

      WebMethodAnnot wma = mdc.getWebMethodAnnot();
      if (wma != null) {
        if (wma.exclude() == false)
          return true;
      }
    }
   
    return false;
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.WebMethodAnnot

  private void attachWebMethodAnnotation(MethodDescriptionComposite mdc, Method
      method) {
    WebMethod webMethod = (WebMethod) ConverterUtils.getAnnotation(WebMethod.class,
        method);
    if(webMethod != null) {
      WebMethodAnnot wmAnnot = WebMethodAnnot.createWebMethodAnnotImpl();
      wmAnnot.setAction(webMethod.action());
      wmAnnot.setExclude(webMethod.exclude());
      wmAnnot.setOperationName(webMethod.operationName());
      mdc.setWebMethodAnnot(wmAnnot);
    }
  }
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.WebMethodAnnot

        return service;
    }
   
    private void fillOperationInformation(Method method, AxisOperation operation, DescriptionBuilderComposite dbc) throws Exception{
            MethodDescriptionComposite mdc = new MethodDescriptionComposite();
            WebMethodAnnot webMethodAnnot = WebMethodAnnot.createWebMethodAnnotImpl();
            webMethodAnnot.setOperationName(method.getName());
           
            if(operation.getStyle().equals(AxisOperation.STYLE_DOC)){
                fillDocOperationInfo(method, operation, dbc, mdc, webMethodAnnot);
            }else if(operation.getStyle().equals(AxisOperation.STYLE_RPC)){
                throw new RuntimeException("Not Yet Implemented");
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.