0 Replies Latest reply on Oct 3, 2011 9:32 PM by gaumont wang

    Jboss web service client runtime error

    gaumont wang Newbie



      I am working on a jax-ws client using jboss's ws client runtime to create web service proxy. Here is the pseudo code


      //create service

      HelloService service = new HelloService(wsdlurl, serviceQname);

      // get web service proxy

      Hello port = service.getHelloPort();

      // call web service



      but I got errors like this:


      org.jboss.ws.WSException: Could not generate wrapper type: xxx(the name of a class defined as schema element in my wsdl)

          at org.jboss.ws.core.jaxws.DynamicWrapperGenerator.generate(DynamicWrapperGenerator.java:124)

          at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.processWebMethod(JAXWSMetaDataBuilder.java:759)

          at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.processWebMethods(JAXWSMetaDataBuilder.java:874)

          at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.rebuildEndpointMetaData(JAXWSClientMetaDataBuilder.java:294)

          at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortInternal(ServiceDelegateImpl.java:262)

          at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:233)

          at javax.xml.ws.Service.getPort(Service.java:185)


      Weird thing is if I change it to use reference implementation runtime from JDK(by switching proivderImpl to com.sun.xml.internal.ws.spi.ProviderImpl in system property), it works fine without any error.


      The web service client code is generated using CXF's wsdlToJava. The Jboss version is:


      jbossws-native-2.0.3.GA (build=200801251318)


      Does anyone know what's the cause of this problem.


      Thanks a lot!