-
Bug
-
Resolution: Done
-
Major
-
None
-
None
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:
@WebServiceRef(name="service/jbws2307service")
@MTOM
HelloService service;
... referencing a service class as follows:
@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 //... }
- blocks
-
JBWS-3821 WebServiceRef injection not working properly with TCCL and NEW client Bus selection strategies
- Closed