Package org.codehaus.xfire.annotations

Examples of org.codehaus.xfire.annotations.WebMethodAnnotation


        control.setDefaultReturnValue(true);
       
        webAnnotations.hasWebMethodAnnotation(echoMethod);
        control.setDefaultReturnValue(true);
       
        WebMethodAnnotation wma = new WebMethodAnnotation();
        wma.setOperationName("echo");
        webAnnotations.getWebMethodAnnotation(echoMethod);
        control.setDefaultReturnValue(wma);
       
        webAnnotations.hasWebParamAnnotation(echoMethod, 0);
        control.setDefaultReturnValue(false);
View Full Code Here


    public WebMethodAnnotation getWebMethodAnnotation(Method method)
    {
        WebMethod webMethod = (WebMethod) method.getAnnotation(WebMethod.class);
        if (webMethod != null)
        {
            WebMethodAnnotation annotation = new WebMethodAnnotation();
            annotation.setAction(webMethod.action());
            annotation.setOperationName(webMethod.operationName());
            annotation.setExclude(webMethod.exclude());
           
            return annotation;
        }
        else
        {
View Full Code Here

    }

    public void testGetWebMethodAnnotation()
            throws Exception
    {
        WebMethodAnnotation webMethod = webAnnotations.getWebMethodAnnotation(echoMethod);
        assertNotNull(webMethod);
        assertEquals("Invalid operation name", "echoString", webMethod.getOperationName());
        assertEquals("Invalid action", "urn:EchoString", webMethod.getAction());
    }
View Full Code Here

    }

    public void testGetNullWebMethodAnnotation()
            throws Exception
    {
        WebMethodAnnotation webMethod = webAnnotations.getWebMethodAnnotation(dummyMethod);
        assertNull(webMethod);
    }
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.annotations.WebMethodAnnotation

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.