Adding a Web Reference in Eclipse

To develop Java programs that consume Spatial Module web services in Eclipse, you first create a reference to the web service in your Java project. When the reference is created, the client-side stub code required to use the web service is generated.

  1. Start Eclipse.
  2. On the File menu, select New > Project.

    The New Project wizard opens.

  3. In the New Project wizard, select Java > Java Project.

    Click Next.

  4. In the Project Name field, enter the name you want to give your project.

    Click Finish to close the wizard.

    The new project folder appears in the Package Explorer.

  5. In the Package Explorer, right-click on the project folder you created in the previous step. On the pop-up menu, select New > Other.

    The New wizard opens.

  6. In the New wizard, select Web Services > Web Service Client.

    Click Next.

  7. In the Service Definition field, enter the URL to the web service's WSDL document.

    Select Develop Client on the slider bar.

    Click Finish to close the wizard.

The stub code for the web service is generated in the project folder.