About Question enthuware.ocejws.v6.2.164 :

Moderators: Site Manager, fjwalraven

Post Reply
himaiMinh
Posts: 358
Joined: Fri Nov 29, 2013 8:26 pm
Contact:

About Question enthuware.ocejws.v6.2.164 :

Post 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.

fjwalraven
Posts: 429
Joined: Tue Jul 24, 2012 2:43 am
Contact:

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

Post 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

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests