]
Alessio Soldano updated JBWS-3899:
----------------------------------
Priority: Minor (was: Major)
Print warning for misconfigured contract-first endpoints
--------------------------------------------------------
Key: JBWS-3899
URL:
https://issues.jboss.org/browse/JBWS-3899
Project: JBoss Web Services
Issue Type: Enhancement
Components: jbossws-cxf
Reporter: Alessio Soldano
Priority: Minor
Fix For: jbossws-cxf-5.0
When user provides misconfigured contract-first endpoints as below, the stack silently
ignore the request of using the specified contract and generates the wsdl (code-first).
{noformat}
@Stateless
@WebService(portName = "SimpleEchoPort",wsdlLocation =
"META-INF/wsdl/Echo.wsdl")
public class SimpleEcho {
...
}
{noformat}
(notice there's no serviceName specified, hence the stack won't know which
port/service to use from the contract)
We should likely print a warning in this scenario, asking the user if he really wants a
contract-first endpoint.