java - What is the alternative solution for @javax.jws.WebMethod(exclude=true)? -
in process of up-gradation cxf jars 2.2.12 3.1.6, facing issue "exclude=true" attribute in @javax.jws.webmethod annotation while building project. getting following exception.
[java] error: java.lang.runtimeexception: org.apache.cxf.jaxws.jaxwsconfigurationexception: @javax.jws.webmethod(exclude=true) cannot used on service endpoint interface. method: deletefileinternal [java] use verbose setting show stacktrace of error [java] javatows error: org.apache.cxf.tools.common.toolexception: org.apache.cxf.jaxws.jaxwsconfigurationexception: @javax.jws.webmethod(exclude=true) cannot used on service endpoint interface.
this due to, cxf 3.1.6 not supporting "exclude=true" attribute while generation wsdl java class if class annotated @javax.jws.webservice annotation.
can please suggest alternate solution this?
do not use @javax.jws.webmethod(exclude=true)
on interface, use on implementation
public class mywebserviceimpl implements mywebservice { ... @webmethod(exclude = true) string methodtoexclude(string s) { } }
also can remove method interface
Comments
Post a Comment