Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JAX-WS client issue  RSS feed

 
Abi Raj
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
 
Sudeep Agrawal
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.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • 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!