hi, I have the following code in my java class which basically is trying to access the webservice deployed. -->URL url = new URL(" http://localhost:8080/jaxws-calculator-1.0/calculator?wsdl"); QName qname = new QName("http://jws.samples.geronimo.apache.org", "Calculator"); Service service = Service.create(url, qname);
But when i try to run it is a java applicaton I get the following error: Exception in thread "main" javax.xml.ws.spi.FactoryFinder$ConfigurationError: Provider org.apache.axis2.jaxws.spi.Provider not found at javax.xml.ws.spi.FactoryFinder$2.run(FactoryFinder.java:138) at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267) at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:125) at javax.xml.ws.spi.FactoryFinder.access$200(FactoryFinder.java:44) at javax.xml.ws.spi.FactoryFinder$3.run(FactoryFinder.java:258) at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267) at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:168) at javax.xml.ws.spi.Provider.provider(Provider.java:32) at javax.xml.ws.Service.<init>(Service.java:36) at javax.xml.ws.Service.create(Service.java:88) at abc.CalculatorClient.main(CalculatorClient.java:25) But, when I use the same code to access a web service from a servlet it works fine.. Dont know where i am going wrong. Do we need to specify any other details? Kindly clarify me in this regard -- Sainath Chowdary B.Tech III yr, Spring Semester Electronics & Communication Engg Indian Institute of Technology Roorkee