4 Replies Latest reply on Dec 6, 2006 3:49 AM by Alexander Eitner

    The problem with @WebServiceRef

    null null Newbie


      Dear All

      I publish my webserivce wsdl on my localhost successfully

      Then i wrote a testclient(following JAVAEE tutorial)
      but i could not get HelloServiceBeanService instance via @WebServiceRef
      I always get nullpoint exception when i try to use service.

      Anyone can give me some hints on it?
      Thanks and Rgds


      import javax.xml.ws.WebServiceRef;
      import webservice.test.*;
      public class HelloClient {
      @WebServiceRef(wsdlLocation="http://localhost:8080/helloservice/HelloServiceBean?wsdl")
      HelloServiceBeanService service;
      public static void main(String[] args) {
      try {
      HelloClient client = new HelloClient();
      client.doTest(args);
      } catch (Exception e) {
      e.printStackTrace();
      }
      }