Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-439

Invalid null xmlType argument, for: result

XMLWordPrintable

      Daniel van Mil wrote,

      I'm testing the JBoss tagged version "JBossWS_1_0EA" for the Webservice annotations.
      It all works fine, except methods that return complex types. My code :

      @WebService(name = "MyBean", targetNamespace = "mynamespace", serviceName =
      "MyBean")
      @PortComponent(contextRoot = "/myservice", urlPattern = "/*") @Stateless @SOAPBinding(style = SOAPBinding.Style.RPC, use = SOAPBinding.Use.LITERAL) public class MyBean {
      public Test getTest()

      { return new Test(); }

      }

      My (Simple) Complex type :

      public class Test {
      private String test = "test";

      public String getTest()

      { return test; }

      public void setTest(String test)

      { this.test = test; }

      }

      I'm getting this error :

      java.lang.IllegalArgumentException: Invalid null xmlType argument, for: result
      at org.jboss.ws.metadata.ParameterMetaData.<init>(ParameterMetaData.java:51)
      at org.jboss.ws.metadata.AbstractMetaDataBuilder.setupEndpointFromAnnotations(AbstractMetaDataBuilder.java:312)

              tdiesler@redhat.com Thomas Diesler
              tdiesler@redhat.com Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: