...
The getFishTicketNumbers001() takes four five arguments:
- String Userid – i.e "amarx"
- String password – i.e. "A_marx"
- String schemaVersionNumber – i.e. "2.1"
- String numberOfNumbersRequested - i.e. "10"
- String reportType - i.e. "B" for Salmon, "C" for Crab, "G" for groundfish
...
String xml = ws.getFishTicketNumbers001("amarx", "A_marx", "2.3", count10, "B");
Notice that we are passing in "B" for the reportType. This indicates that we intend to use these fish tickets on salmon fish ticket. However, if you pass in "G" and get back tickets that you intended to use on Groundfish tickets and then happened to use them on Salmon tickets, the system will accept them when you submit the ticket later on.
...
Code Block |
---|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <number_info> <schema_version>2.3</schema_version> <fish_ticket_number>E12 685779</fish_ticket_number> <fish_ticket_number>E12 685780</fish_ticket_number> <fish_ticket_number>E12 685781</fish_ticket_number> <fish_ticket_number>E12 685782</fish_ticket_number> <fish_ticket_number>E12 685783</fish_ticket_number> <fish_ticket_number>E12 685784</fish_ticket_number> <fish_ticket_number>E12 685785</fish_ticket_number> <fish_ticket_number>E12 685786</fish_ticket_number> <fish_ticket_number>E12 685787</fish_ticket_number> <fish_ticket_number>E12 685788</fish_ticket_number> </number_info> |
...
If you call the webservice again using:
xml = ws.getFishTicketNumbers001("amarx", "A_marx", "2.3", 10, "B");
You would get back 10 new fish ticket numbers that this user has never seen before. These numbers are now reserved and should never be issued from this webservice method again.
Code Block |
---|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<number_info>
<schema_version>2.3</schema_version>
<fish_ticket_number>E12 685789</fish_ticket_number>
<fish_ticket_number>E12 685790</fish_ticket_number>
<fish_ticket_number>E12 685791</fish_ticket_number>
<fish_ticket_number>E12 685792</fish_ticket_number>
<fish_ticket_number>E12 685793</fish_ticket_number>
<fish_ticket_number>E12 685794</fish_ticket_number>
<fish_ticket_number>E12 685795</fish_ticket_number>
<fish_ticket_number>E12 685796</fish_ticket_number>
<fish_ticket_number>E12 685797</fish_ticket_number>
<fish_ticket_number>E12 685798</fish_ticket_number>
</number_info> |
If you pass in NULL for the report type with the following webservice call:
...