You (probably) will not have a barcode scanner on your server, but on user computers.
The barcode scanner usually reads the barcode, understands it and allows you to read this data from your computer from the keyboard. Therefore, you just need to send this data to the server that will be processed.
EDIT: -, , , : # Barcode Generator WebService. , .