In the NetBeans Projects window, expand the ProjectName–ejb project and then expand Web Services.
Right-click ApplicationNameEJBService and then select Generate and Copy WSDL.
Specify a location to store the WSDL file and click OK.
Right–click the Repository-based client project, point to Import, and then select Web Service Definition.
Follow the steps in the Import WSDL(s) Wizard.
A web service OTD for the ProjectNameEJBService is created. You can use this OTD to access the operations of the migrated master index application.