0 Replies Latest reply on May 11, 2009 3:26 PM by Sebastien Degardin

    EJB3 WS endpoint generates a weird WSDL

    Sebastien Degardin Newbie


      I'm using EJB3.0 on JBoss 4.2.2.

      When my WSDL get generated, it contains unnecessary layer for input and output paramters.

      For example, for a Service :

      public UserAccount login (String login, String password);

      The WSDL will have 2 object that represents the return UserAccount :

      <xs:complexType name="loginResponse">
      <xs:element minOccurs="0" name="return" type="tns:userAccount"/>
      <xs:complexType name="userAccount">

      As you can see the "loginResponse" is just a uneeded wrapper around the UserAccount return type.

      I'm just lookign for a way of avoiding that, of maybe if someone can explain how I could generate the EJB impl from a WSDL.