Program 2 - Part 1

You are a new employee of WaterWurx Inc. charged with the task of setting up an XML quoting and ordering system for WaterWurx's main product, a pair of hoses connected via a single valve. For the first portion of this task, you will be defining the XML schemas for each of the messages to be sent between WaterWurx (the vendor), the supplier, and the customer.

Hoses have a length, a diameter, and flow rate restrictions. Valves have an in diameter and an out diameter, flow rate restrictions, and a material of construction.

WaterWurx sells only assemblies (that is, two hoses and a valve, conjoined). The supplier only sells hoses and valves separately.

Messages travel between consumer and provider. In our scenario, the relationships are as below.

Provider <----> Consumer
----------------------------
WaterWurx <----> Customer
Supplier <----> WaterWurx

The customer is always the consumer; WaterWurx is a provider to customers, and a consumer to the supplier; and the supplier is always a provider. All messages contain complete contact information for both consumer and provider along with a date sent. Contact information includes items such as Name, Address, phone number, and email.

The messages to be encoded are:

Create an XML schema for each type of message, and place it in its own file named X.xsd with root node X, where X is the type of message. E.G. the xsd for Bill would be named Bill.xsd with root node named Bill. Create an example xml file that instantiates each schema and name it X.xml as well. Submit the xsd and xml files via the course locker. This assignment is due Monday 28 by 10:00 am.