Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction

...

Netbeans will generate the elandings.java class for you.

Notice that Netbeans was able to look at the WSDL and generate a number of Java Object classes. 

We will use the generated class ReportManagementV1Service.java to create our webservice connection.

Image Added

We will use the generated java class FindLandingReports.java as a parameter object to tell the webservice findLandingReports() what data we want to get from the server. In our case we will ask for a landing report by id (or landing report id). However, we could pass in as a parameter a fish ticket number or proc code or adfg vessel number, etc.

Image Added

Now Create the content of the MyClient.java class

Image Modified

package com.mycompany.elandingsclient2019;

...

In this example we will attempt to pull a landing report that we know exists from elandings test for the user tturbot.

Image Modified

If we run our file we should get an output of:

INFO: Landing Report ID: 18378245 last edited by AMARX

Image Modified