1 Reply Latest reply on Jun 21, 2006 9:57 AM by Alexander Eitner

    WSDL generated at deploy time

    Alexander Eitner Newbie

      Hello, this must be an easy question to some of you....

      i have an EJB 3.0 / EJB 2.1 application that is packed in .ejb3 / .jar archives. Some of EJB 3.0 classes are webservice endpoints. When i deploy, JBoss generates and publishes a WSDL file that differs from the WSDL file generated by WSGEN.

      JBoss generates in the .xsd file:

      <complexType name="CustomerVO">
      <sequence>
      <element name="customerID" nillable="true" type="int"/>
      <element name="emailAddress" nillable="true" type="string"/>
      <element name="firstName" nillable="true" type="string"/>
      <element name="lastName" nillable="true" type="string"/>
      <element name="primaryKey" nillable="true" type="int"/>
      <element name="pwd" nillable="true" type="string"/>
      <element name="userName" nillable="true" type="string"/>
      </sequence>
      </complexType>


      Please note that the marked line doesnt exist in the ValueObject. I just dont know why it is generated... The result is that i have problems when i invoke methods that have the VO as parameter with a testclient. Anyway, WSGEN seems to generate the correct .xsd file. In this case, the marked line is missing.

      My Question: Since i have the WebService-Endpoints in the .ejb3 archive, where do i have to put the WSGEN-wsdl file? And how can i tell JBoss not to generate its own wsdl-file?

      I searched for it but only found answers regarding .war archives.

      thx for your time