aspose file tools*
The moose likes Web Services and the fly likes Please Help regarding error while create *Service class by using wsimport glassfish v2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Please Help regarding error while create *Service class by using wsimport glassfish v2" Watch "Please Help regarding error while create *Service class by using wsimport glassfish v2" New topic
Author

Please Help regarding error while create *Service class by using wsimport glassfish v2

Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

Hi Friends..

I found error when i develop simple JAX-WS application..
i use Netbeans6.5 and Glassfish V2..
i expose EJB3 as a Web Service..
Here is my scenario..

First, this is my EJB3 File :


and then i tried to deploy and generated Service file which named HelloBeanService throug wsimport glassfish
here is the entire code of HelloBeanService :


but there's any error in that file, namely at line :
return super.getPort(new QName("http://test.omii.ac.uk", "HelloBeanPort"), HelloBean.class , features);

.....................................HelloBeanService.java:68: cannot find symbol
symbol : method getPort(javax.xml.namespace.QName,java.lang.Class<uk.ac.omii.test.HelloBean>,javax.xml.ws.WebServiceFeature[])
location: class javax.xml.ws.Service
return super.getPort(new QName("http://test.omii.ac.uk", "HelloBeanPort"), HelloBean.class , features);
1 error




i don't know exactly what reasons causes that error.. and i don't know how to solve the error, because i'm new in JAX-WS..
please help me regarding this issue..

Thanks in advance..

Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

Hi.. it has solved..

Just remove the features parameter in getHelloBeanPort method..



Thanks for any attentions although there's no respond for me..
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Eh, but you already have a getPort method without parameters:

You can use this method if you do not want to supply any WebServiceFeatures. If you have a compilation problem, then it may be related to a missing JAR, as you spoke about in another posting.
Also, editing generated classes is generally a bad idea. If you one day come back to modify your client and generate a new version of the generated classes, then any changes you hav emade by hand are lost.
Best wishes!
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

Thanks Ivan for your attention..
I'll keep it in mind..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please Help regarding error while create *Service class by using wsimport glassfish v2
 
Similar Threads
Exception thrown While Running a Client
Web Services with Axis2
Problem while Encrypting SOAP body using Metro
JBOSS web service client doesn't work ( runtime modeler error: Wrapper class not found )
Stupid Question: Where the heck can I download JAX-WS?