Versions Compared

Key

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

...

The findUserLandingReports() takes several arguments. Arguments left blank are not used as search criteria. The arguments are: 1.

  1. String Userid – i.e

...

  1. 'amarx'

...

  1. String password – i.e.

...

  1. 'A_

...

  1. marx'

...

  1. String schemaVersionNumber – i.e.

...

  1. '2.

...

  1. 1'

...

  1. String fishTicketNumber – i.e.

...

  1. 'E06 000511' or ''
  2. String processorCode – i.e.

...

  1. 'F1234' or ''
  2. String federalProcessorCode – i.e.

...

  1. '12345' or ''
  2. String registeredBuyerNumber – i.e.

...

  1. '980003' or ''
  2. String registeredCrabRecieverNumber – i.e.

...

  1. '990011' or ''
  2. String adfgVesselNumber – i.e.

...

  1. '41444' or ''
  2. String reportType – i.e.

...

  1. 'G' or ''
  2. String portOfLanding – i.e.

...

  1. 'JNU' or ''
  2. String cfecFishery – i.e.

...

  1. 'S03T' or ''
  2. String cfecPermit – i.e.

...

  1. '00121I' or ''
  2. String gearCode – i.e.

...

  1. '3' or ''
  2. String nmfsPersonId – i.e.

...

  1. '90010' or ''
  2. String ifqNumber – i.e.

...

  1. '90015' or ''
  2. String reportStatus – i.e.

...

  1. '8' or ''
  2. Calendar fromDate – i.e.

...

  1. '01/10/

...

  1. 2010' or

...

  1. ''

...

  1. Calendar toDate – i.e.

...

  1. '01/20/

...

  1. 2010' or

...

  1. ''

...

  1. String tenderVesselNumber – i.e.

...

  1. '41444' or ''
  2. String includeItemizedCatchSummaries – i.e.

...

  1. 'Y' or 'N'
  2. String tenderBatch – i.e.

...

  1. 'A0B1C2D3E4' or ''
  2. String tenderInvoice – i.e.

...

  1. '123456' or ''
    In the web service client we might auto generate a data structure by providing the web service URL. In eLandings we use Java – JAX-WS and generated a structure called ReportManager.
    ReportManagement ws;

...

  1. ...
    ...
    String xml = ws. findUserLandingReports (Userid, password, schemaVersionNumber, fishTicketNumber, processorCode, federalProcessorCode, registeredBuyerNumber, registeredCrabRecieverNumber, adfgVesselNumber, reportType, portOfLanding, cfecFishery, cfecPermit, gearCode, nmfsPersonId, ifqNumber, reportStatus, fromDate, toDate, tenderVesselNumber, includeItemizedCatchSummaries, tenderBatch, tenderInvoice);
    For example:
    If we wanted to search for an individual landing report with fish ticket ¿E06 000511¿ we would pass in the following parameters:
    String xml = ws. findUserLandingReports (¿amarx¿, ¿A_marx¿, ¿2.1¿, ¿E06 000511¿, ¿¿, ¿¿, ¿¿, ¿¿, ¿¿, ¿¿, ¿¿, ¿¿, ¿¿, ¿¿, ¿¿, ¿¿, ¿¿, null, null, ¿¿, ¿¿, ¿¿, ¿¿);
    If we wanted to search for all landing reports with a date of landing between 01/10/2010 and 01/20/2010, we would run something similar to:
    SimpleDateFormat slashFmt = new SimpleDateFormat("MM/dd/yyyy");
    Date calendarStartDate = slashFmt.parse(¿01/10/2010¿)
    Calendar startDate = new GregorianCalendar();
    startDate.setTimeInMillis(calendarStartDate.getTime());

Date calendarEndDate = slashFmt.parse(¿01/20/2010¿)
Calendar endDate = new GregorianCalendar();
endDate.setTimeInMillis(calendarEndDate.getTime());

...