Page 1 of 1

About Question enthuware.ocejws.v6.2.164 :

Posted: Sat Apr 12, 2014 7:50 pm
by himaiMinh
Regarding to the explanation of the 3rd option:
"Although technically possible (there is a constructor has a parameter that takes WebServiceFeature ... feature)."
But I don't see any child class of Service class that has such a constructor.
Typically, I only see something like this:

Code: Select all

   @WebServiceClient(...)
    public class ExampleService extends Service {

     public ExampleService(){
         super(WSLD_LOCATION, new QName(....));
      }
    
     public ExampleService(URL wsdlLocation, QName serviceName){
           super(wsdlLocation, serviceName);
     }


   }
There are only 2 constructors, no ExampleService(WebServiceFeature ... feature) constructor.

Re: About Question enthuware.ocejws.v6.2.164 :

Posted: Sun Apr 13, 2014 2:03 am
by fjwalraven
It depends if you work with EE5 or EE6. In EE6 you have a create() method that takes a (WebServiceFeature... features) parameter.

You can check the differences of the javax.xml.ws.Service class in EE5 API and EE6 API.

Regards,
Frits