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

Details

    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:

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: