0 Replies Latest reply on Feb 11, 2008 12:52 PM by scitmon

    Web Service Client Exception

    scitmon

      Using Jboss 4.2.2GA to host my webservice and the wsconsume tool in the server bin folder, I've been getting the following Exception:

      Exception in thread "Main Thread" java.lang.NoSuchMethodError: newInstance
      at com.sun.xml.ws.api.SOAPVersion.(SOAPVersion.java:163)
      at com.sun.xml.ws.api.SOAPVersion.(SOAPVersion.java:68)
      at com.sun.xml.ws.api.BindingID.(BindingID.java:304)
      at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseBinding(RuntimeWSDLParser.java:398)
      at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(RuntimeWSDLParser.java:295)
      at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:124)
      at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:226)
      at com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:189)
      at com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:159)
      at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:81)
      at javax.xml.ws.Service.(Service.java:56)
      at javax.xml.ws.Service.create(Service.java:680)
      at com.lbsltd.webservice.WSClient.main(WSClient.java:34)



      when running the following code:

       try
       {
       URL wsdlLocation = new URL("http://localhost:8080/DummyWS/DummyWS?wsdl");
       QName serviceName = new QName("http://localhost:8080/DummyWS/DummyWS", "DummyWSService");
       service = Service.create(wsdlLocation, serviceName);
       }
       catch (MalformedURLException e)
       {
       e.printStackTrace();
       }
      


      the exception is thrown at the "Service.create" line



      i also tried the wsconsume generated service which produced the same result when i came to create an instance of the service.

      can somebody enlighten me as to what this exception is about?

      many thanks
      Scotty