I am implementing EJB3 web service .
IDE is eclipse
Application Server is
JBoss Server side is doing properly ,when I am running my following client
public class Client {
public static void main(
String[] args) throws Exception {
System.out.println("Starting
Test Client");
URL url = new URL(
"http://localhost:8080/imaging/ImagingServiceBean?wsdl");
QName qname = new QName("http://ejb.iba.by/jaws",
"ImagingServiceService");
System.out.println("Creating a service Using: \n\t" + url + " \n\tand "
+ qname);
ServiceFactory factory = ServiceFactory.newInstance();
Service remote = factory.createService(url, qname);
System.out.println("Obtaining reference to a proxy object");
ImagingService proxy = (ImagingService) remote
.getPort(ImagingService.class);
System.out.println("Accessed local proxy: " + proxy);
String string = "John";
System.out.println("Sending: " + string);
System.out.println("Receiving: " + proxy.echo("John"));
}
}
in the statement Service remote = factory.createService(url, qname);
i am getting follwing exception.........
Exception in
thread "main" java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException
at org.apache.axis.encoding.DefaultTypeMappingImpl.<init>(DefaultTypeMappingImpl.java:153)
at org.apache.axis.encoding.DefaultTypeMappingImpl.<init>(DefaultTypeMappingImpl.java:130)
at org.apache.axis.encoding.DefaultTypeMappingImpl.getSingleton(DefaultTypeMappingImpl.java:124)
at org.apache.axis.encoding.TypeMappingRegistryImpl.<init>(TypeMappingRegistryImpl.java:180)
at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.java:510)
at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java:104)
at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:209)
at org.apache.axis.AxisEngine.init(AxisEngine.java:188)
at org.apache.axis.AxisEngine.<init>(AxisEngine.java:173)
at org.apache.axis.client.AxisClient.<init>(AxisClient.java:88)
at org.apache.axis.client.Service.getAxisClient(Service.java:145)
at org.apache.axis.client.Service.<init>(Service.java:187)
at org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:233)
at by.iba.client.Client.main(Client.java:22)
I have added all jars from my end..if something missing in my classpath then please help me in that which jar I have to add in my classpath