Examples of WebMethodAnnotation


Examples of org.codehaus.xfire.annotations.WebMethodAnnotation

    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

Examples of org.codehaus.xfire.annotations.WebMethodAnnotation

    }

    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

Examples of org.codehaus.xfire.annotations.WebMethodAnnotation

    }

    public void testGetNullWebMethodAnnotation()
            throws Exception
    {
        WebMethodAnnotation webMethod = webAnnotations.getWebMethodAnnotation(dummyMethod);
        assertNull(webMethod);
    }
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.