Results 1 to 2 of 2
Thread: Service Class Constructor
- 05-01-2012, 11:54 PM #1
Member
- Join Date
- May 2012
- Posts
- 1
- Rep Power
- 0
Service Class Constructor
We have a program that extends Service. It is made available from "import javax.xml.ws.Service;"
The class calls super several times and has no syntactical error when it uses two parameters (URL/wisdl location and Qname). But when it tries to invoke the constructor with three parameters is gives an error (The constructor Service(URL, QName, WebServiceFeature[]) is undefined).
As this is an existing project, I'm wondering why it is now getting errors.
Any ideas?
- 05-02-2012, 05:40 AM #2
Senior Member
- Join Date
- Jun 2007
- Location
- Bali, Indonesia
- Posts
- 762
- Rep Power
- 14
Re: Service Class Constructor
Are you sure you are using the correct JDK version to compile your project? Please take a look at the Javadoc of your JDK to see if the constructor with those parameters available in the javax.xml.ws.Service class.
Website: Learn Java by Examples
Similar Threads
-
extends class, why does it need another constructor?
By kyle_maddisson in forum New To JavaReplies: 14Last Post: 11-24-2011, 07:36 AM -
Class & Constructor / Won't Comile
By jhuwalker in forum New To JavaReplies: 6Last Post: 03-01-2011, 02:32 PM -
Accessing Constructor from another Class
By Java-Guy in forum New To JavaReplies: 4Last Post: 01-19-2011, 05:41 AM -
Calling constructor of parent class from a constructor
By Java Tip in forum Java TipReplies: 0Last Post: 12-19-2007, 10:10 AM -
Calling constructor of same class from a constructor
By Java Tip in forum Java TipReplies: 0Last Post: 12-19-2007, 10:01 AM
Bookmarks