• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

JAX-WS client issue

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I try to compile my client program throught ant I get the following error

cannot find Symbol CDCatalogImplService

I am able to compile the server files, deploy them and read the wsdl file.

Here is my client code

--------
package cdcdatalogservice.client;

import java.rmi.RemoteException;
import cdcatalogservice.server.CDCatalogImplService;
import cdcatalogservice.server.CDCatalogImpl;

public class CDCatalogClient {
public static void main(String[] args) {
try {
CDCatalogImplService service = new CDCatalogImplService();
CDCatalogImpl port = service.getCDCatalogImplPort();
CD cd = port.getCD();
} catch (Exception ex) {
ex.printStackTrace();
}
}

}
--------------
Thanks
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using an IDE with code Assist, to let you know the exact problem.
Must be some spelling mistake.
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have cdcatalogservice.server.CDCatalogImplService in the classpath when you compile the client?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!