[
https://issues.jboss.org/browse/JBWS-3820?page=com.atlassian.jira.plugin....
]
Alessio Soldano updated JBWS-3820:
----------------------------------
Description:
When specifying a webserviceref whose metadata require MTOM or addressing as a consequence
of @MTOM / @Addressing usage, an exception is thrown if the user Service class does not
implement JAXWS 2.2 feature-enabled constructor.
An example of a scenario reproducing the issue is a webserviceref as follows:
{code}
@WebServiceRef(name="service/jbws2307service")
@MTOM
HelloService service;
{code}
... referencing a service class as follows:
{code}
@WebServiceClient(name = "HelloService", targetNamespace =
"http://helloservice.org/wsdl", wsdlLocation =
"WEB-INF/wsdl/HelloService.wsdl")
public class HelloService extends Service
{
public HelloService(URL wsdlLocation, QName serviceName)
{
super(wsdlLocation, serviceName);
}
public HelloService()
{
super(HELLOSERVICE_WSDL_LOCATION, new
QName("http://helloservice.org/wsdl", "HelloService"));
}
@WebEndpoint(name = "HelloPort")
public Hello getHelloPort()
{
return ((Hello)super.getPort(new
QName("http://helloservice.org/wsdl",
"HelloPort"), Hello.class));
}
// no constructors accepting JAX-WS WebServiceFeature
//...
}
{code}
was:When specifying a webserviceref whose metadata require MTOM or addressing as a
consequence of @MTOM / @Addressing usage, an exception is thrown if the user Service class
does not implement JAXWS 2.2 feature-enabled constructor.
JAXWS 2.1 / 2.0 clients and WebServiceRef using JAXWS features cause
NoSuchMethodException
------------------------------------------------------------------------------------------
Key: JBWS-3820
URL:
https://issues.jboss.org/browse/JBWS-3820
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: jbossws-cxf
Reporter: Alessio Soldano
Assignee: Alessio Soldano
Fix For: jbossws-cxf-5.0
When specifying a webserviceref whose metadata require MTOM or addressing as a
consequence of @MTOM / @Addressing usage, an exception is thrown if the user Service class
does not implement JAXWS 2.2 feature-enabled constructor.
An example of a scenario reproducing the issue is a webserviceref as follows:
{code}
@WebServiceRef(name="service/jbws2307service")
@MTOM
HelloService service;
{code}
... referencing a service class as follows:
{code}
@WebServiceClient(name = "HelloService", targetNamespace =
"http://helloservice.org/wsdl", wsdlLocation =
"WEB-INF/wsdl/HelloService.wsdl")
public class HelloService extends Service
{
public HelloService(URL wsdlLocation, QName serviceName)
{
super(wsdlLocation, serviceName);
}
public HelloService()
{
super(HELLOSERVICE_WSDL_LOCATION, new
QName("http://helloservice.org/wsdl", "HelloService"));
}
@WebEndpoint(name = "HelloPort")
public Hello getHelloPort()
{
return ((Hello)super.getPort(new
QName("http://helloservice.org/wsdl",
"HelloPort"), Hello.class));
}
// no constructors accepting JAX-WS WebServiceFeature
//...
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)