Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-6605

Failed to create web service client for eventing web service

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Can't Do
    • Icon: Blocker Blocker
    • 3.1.x, 3.2.x
    • 3.1.x, 3.2.x
    • webservices
    • Hide

      Open eventing sample, run testSuscriptionStatus test case

      Show
      Open eventing sample, run testSuscriptionStatus test case

      I tried to setup the saples fro ws-eventing of JBossWS, I managed to compile an deploy the sample under JBoss AS, however when I try to run the unit tests they fail on the line trying to instantiate the webservice client:

      in file EventingSupport.java
      protected void setUp() throws Exception

      { ... Service service = Service.create(wsdlLocation, new QName("http://schemas.xmlsoap.org/ws/2004/08/eventing","EventingService")); .... }

      }

      with stack trace

      java.lang.NullPointerException
      at com.sun.xml.ws.model.wsdl.WSDLOperationImpl.freez(WSDLOperationImpl.java:147)
      at com.sun.xml.ws.model.wsdl.WSDLPortTypeImpl.freeze(WSDLPortTypeImpl.java:91)
      at com.sun.xml.ws.model.wsdl.WSDLBoundPortTypeImpl.freeze(WSDLBoundPortTypeImpl.java:215)
      at com.sun.xml.ws.model.wsdl.WSDLModelImpl.freeze(WSDLModelImpl.java:241)
      at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:147)
      at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:263)
      at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:226)
      at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:174)
      at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104)
      at javax.xml.ws.Service.<init>(Service.java:79)
      at javax.xml.ws.Service.create(Service.java:96)
      at org.jboss.test.ws.jaxws.wseventing.EventingSupport.setUp(EventingSupport.java:98)
      at junit.framework.TestCase.runBare(TestCase.java:132)
      at junit.framework.TestResult$1.protect(TestResult.java:110)
      at junit.framework.TestResult.runProtected(TestResult.java:128)
      at junit.framework.TestResult.run(TestResult.java:113)
      at junit.framework.TestCase.run(TestCase.java:124)
      ....

      The wsdlLocation points to a corect wsdl whcih will load if tried from the browser directly, also I managed to add this wsdl as a reference in a .Net project

      I tried also to create a webservice client in JBDS by using File / New / web Service Client wizard, that one also fails to do the job to the end.

              Grid.Qian Feng Qian (Inactive)
              wizardnet Vasile Marita (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: