A Toy Merchant application example communicates with a wholesale toy-service engine on the server that keeps a toy-price table to record the different kinds of toy's prices, takes the clients' tasks, queries the toy-price table, does the calculation and returns all results. You will need to write client and a server programs to facilitate interactions using RPC techniques for the following tasks for Client and Server respectively:
- Your client should be able to:
- Send the toy identification details (toy code, toy name) to the server program,
- Send the toy information (name, description, price, date of manufacture, batch number) to the server program,
- Send the toy manufacturer details ((company name, street address, zip-code, country) to the server program,
- Send a thank you message with a unique code (Innovate ☺) to the server program
- Send all the above toy information in one single instruction to the server program
- Your server should be able to:
- Ask the client program to send the toy identification details (toy code, toy name)
- Ask the client program to send the toy information (name, description, price, date of manufacture, batch number)
- Ask the client program to send the toy manufacturer details (company name, street address, zip-code, country).
- Ask the client program to send a thank you message with a unique identification code.
- Ask the client program to send all the toy information in one single instruction.
- Server to send to client a message to indicate the communication succeeded or aborted.