Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-3820

JAXWS 2.1 / 2.0 style clients and WebServiceRef using JAXWS features cause NoSuchMethodException

XMLWordPrintable

      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
      
       //...
      }
      

              rhn-support-asoldano Alessio Soldano
              rhn-support-asoldano Alessio Soldano
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: