cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CXF-2590) service implementator without @WebService still accepted
Date Fri, 08 Jan 2010 18:41:54 GMT

     [ https://issues.apache.org/jira/browse/CXF-2590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Kulp resolved CXF-2590.
------------------------------

       Resolution: Won't Fix
    Fix Version/s: Invalid


Definitely not something we'll "fix" unless the JAX-WS tck starts complaining about it.

CXF DOES require the @WebService annotation on the impl "someplace".   For example, if you
just do:


{code:java}
   public interface FooInterface {
        int blah(int a);
    }
    
    public class FooTest implements FooInterface {
        public int blah(int a) {
            return a;
        }
    }

    ....
    Endpoint.publish("http://localhost:9020/FooPort", new FooTest());
{code}

You will get an exception of:
{code}
javax.xml.ws.WebServiceException: Cannot create Endpoint for implementor that does not have
a WebService annotation and does not implement the Provider interface
	{code}

What is different is that CXF allows the @WebService annotation to only be on the interface
(stick it on FooInterface above) as long as the impl implements the interface.  (if it doesn't
implement the interface, it would need the @WebService to define the endpointInterface attribute)

Anyway, we consider this a "feature" of CXF as it can simplify the impl creation. 





> service implementator without @WebService still accepted
> --------------------------------------------------------
>
>                 Key: CXF-2590
>                 URL: https://issues.apache.org/jira/browse/CXF-2590
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.2.5
>            Reporter: Kent Tong
>             Fix For: Invalid
>
>
> CXF allows a service implementation class without the @WebService annotation. This is
against the JAX-WS spec.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message