2 Replies Latest reply on Mar 3, 2007 12:42 PM by natebowler

    Multiple EJBs with 1 WSDL

    natebowler

      I've got about 200 APIs that are spread over 15 EJB SSB classes. These APIs share a common set of complex types that are quite extensive.

      Because of the complex data types and large number of APIs, I am interested whether it is possible to have a single WSDL file that could distribute the implementation for specific calls across the 15 EJB classes I have.

      Any help with this would be appreciated.

        • 1. Re: Multiple EJBs with 1 WSDL
          thomas.diesler

          Yes, this can be done if you manually consolidate the generated wsdls. Then use @WebService(wsdlLocation="bigservice.wsdl")

          • 2. Re: Multiple EJBs with 1 WSDL
            natebowler

            OK. So, really this is as simple as changing the webservices.xml file

            <wsdl-file>META-INF/wsdl/TestAPI.wsdl</wsdl-file>
            entry and nothing else (I'm not using JSR181, I'm using ws-tools and XDoclet)

            If I put the WSDL back together appropriately, it should all fall out. The WSDL ports defined with webservices.xml with proper port compenent and service endpoint settings will do the rest...