1. Integration Specification

1.1     Overview

This document specifies the integration of nuDeliverIt with external systems. The intention of the document is to provide the understanding, methods and data mapping required to integrate nuDeliverIt (https://www.nudeliverit.com) with external systems.

1.2     Document Terminology

The document assumes native nuDeliverIt field-naming conventions. nuDeliverIt can be used in a wide variety of business delivery application and the field names represented here may not directly represent the use of these fields in your specific application.

It is recommended to read this document along with the understanding of integration of inbound interfaces.

Document TerminologynuDeliverIt UseAssociated Industry Terminology
StopDestination for performing work activities such as delivery, pickup, service, field work etc.Customer location, destination, site.
LoadA sequence of stops combined and assigned to a person. The load contains all the stops in the sequence.Work schedule, Route, truck path, delivery run, service run.
DriverRepresents the personnel deployed for the LoadDriver, trucker, delivery man, technician
CommentsSet of instructions sent to the driver. Comments can be associated with the stop or the load. Note: Only specific comment types are sent to the driver.Special instructions, delivery instructions, Customer request.
Product IdentifierUsed to uniquely identify the product during delivery/ pickup or use. This could represent the barcode if scanning is used in the system.SKU barcode, Package barcode, Item barcode, service number, part, pickup tracking number, delivery tracking number.
HostThis indicates your server from which orders or routes will be sent to nuDeliverIt serverServer

2.  Integration Overview

nuDToHost

This document covers the use of Events and Stops that are generated by nuDeliverIt.

2.1     Integration Protocols

Integration protocols used are HTTPS, FTP and SFTP. External systems can send orders to nuDeliverIt using webservice. The stop/order tracking information files are created in nuDeliverIt. External systems can fetch the XML from nuDeliverIt over FTP. nuDeliverIt can also post Stop/Order data using a customer created webservice on a secure server on the interfacing system.

InterfaceProtocolsData Format
Host to nuDeliverIt Stop/ OrderHTTPS/ SFTP/ FTPXML
nuDeliverIt to Host Stop/Order DeliveryHTTPS/SFTP/ FTPXML

2.2     Integration Format

Integration format is developed for the most common use. The most commonly used format (XML) is provided as default.

2.3     File Name

If a file-based protocol is used (FTP/ SFTP/FILE), if is recommended that the following file naming convention is used. This will allow the files to be processed in sequence. The file name will be prefixed as follows

  • <stopnumber>_CCYYMMDD_HHMMSS.xml (all filenames are in lowercase notation)

3.   Host to nuDeliverIt Stop/ Order Integration (From your server to nuDeliverIt)

3.1     Stop integration Overview

Here “Host” refers to your server from which orders/routes will be sent via XML to nuDeliverIt server. Stop integration is achieved through either a REST based web services over HTTPS connection or using SFTP/FTP. The stops are interfaced using XML. The schema definition is defined in nuDeliverItStops.xsd.

3.2     Stop XML Structure

The stop information is a hierarchical structure. The high-level schematics are shown as below. The fields under each of the tags and their description are provided in the integration spreadsheet. A sample XML document and XSD for the XML is provided at the end of this page.

Picture1

3.3     Function node

XML has a node “Function” within the tag “Stop”. The value of this node “Function” determines the action to be taken.

FunctionDescription
01Create or update the Stop.
02Delete the Stop.
03Create or update the stop and assign/ un-assign it to Business Partner carrier.

3.4     Web Services

Upon signup with nuDeliverIt, the URL for web services will be provided along with the company code. Web services utilizes basic authentication over HTTPS. An integration user with integration role should be created to authenticate with the web services. An example of the web service URL is

<URL>/api/stop/<COMPANY_CODE>

3.5     Web Service Response

The web service request is processed synchronously and a response XML is sent back. The response XML consists of any error information and updates performed in the system. The response must be captured and analyzed for any errors.

3.6     XML Special Characters

XML data must be well formed and must conform to the XML standards and the XSD. Care should be taken to ensure that special characters are escaped properly in the data. The following are the special characters used in the XML and their corresponding escaped format. Replace any special characters in the data with the escaped format to prevent failure of the interface.

Special CharacterEscaped Format
&&amp;
&lt;
&gt;
&quot;
&apos;

4.  nuDeliverIt to Host Stop/ Order Integration (From nuDeliverIt to your server)

For every stop/order, when the stop/order is completed in nuDeliverIt, nuDeliverIt creates an XML file with all the execution data. The XML format is very similar to the stop/order data coming from host to nuDeliverIt except additional attributes for actual start date/time of the order delivery, date/time of order completion, actual items delivered, signature if captured etc. Host systems can get these XML files over FTP/SFTP or if the customer can expose a webservice, nuDeliverIt will POST the XML over HTTPS using customer created REST based webservice. The XML file includes the stop/order events and the event definition is explained below.

5. Event Overview

5.1     Events

Events are recorded steps that occur on the nuDeliverIt mobile application and sent to the portal in real-time. If there is loss of connectivity between the device and portal, the events are reported on the first available data connection. All nuDeliverIt event data (loads & stops) can be reported with date, time and location where the event occurred.

The following provide the list of events that are reported by nuDeliverIt.

Load Level Events

Event CodeEvent NameDescription
7000LOAD_CREATEDEvent to indicate when the load was created.
7001LOAD_ASSIGNEDEvent to indicate a driver has been assigned to a load.
7002LOAD_UNASSIGNEDEvent to indicate the load was unassigned from a driver.
7004LOAD_INITIATEDEvent to indicate the driver has checked into the load using the nuDeliverIt mobile app.
7005LOAD_COMPLETEDEvent to indicate that load was completed.
7015LOAD_SUSPENDEDEvent to indicate when the load was suspended.
7024LOAD_UPDATEDEvent to indicate when the load was updated.
7033LOAD_CANCELLATIONEvent to indicate when the route was cancelled.

Stop Level Events

Event CodeEvent NameDescription
7006STOP_GF_ENTEREDEvent to indicate the driver has entered into the stop geo-fence of one of the stops on their load. The data provided gives the associated load number and stop number.
7007STOP_ARRIVALEvent to indicate the drivers arrival at the stop (pick or delivery)
7008STOP_DEPARTUREEvent to indicate the driver’s departure from the stop
7009STOP_DELIVERYEvent to indicate the confirmation of pickup/delivery at the stop
7014DOCUMENT_CAPTUREEvent to indicate, if any PDF documents are involved or camera capture of photos at the stop
7021STOP_CLOSEDEvent to indicate when the stop was closed
7028STOP_PLANNEDEvent to indicate when the stop was planned into a route
7044STOP_REOPENEDEvent to indicate the when the stop was reopened
7053STOP_UPDATEDEvent to indicate when the stop was updated
7059STOP_CANCELLEDEvent to indicate when the stop was cancelled
8100Stop ReceivedEvent to indicate of the stop was physically received at the warehouse/depot location
8101Stop Scheduling InitiatedEvent to indicate customer has been notified to select an appointment date for a pickup/delivery
8102Stop Scheduling ConfirmedEvent to indicate customer has been confirmed an appointment date for a pickup/delivery
8103Stop Scheduling CanceledEvent to indicate customer has been cancelled an appointment date for a pickup/delivery

6.  Web Service Integration

6.1     Introduction

This section describes in detail the process involved on how a user can make requests to the nuDeliverIt Portal and retrieve the necessary data using Web Services API Calls(s). nuDeliverIt provides a very clean and easy mechanism for any customer to send a custom specific request to retrieve any data that they need for their custom use. All of the Web Services Requests are very secure, as any request to the nuDeliverIt portal requires authentication using the username and password that’s registered with the nuDeliverIt portal application for a specific company/customer. Not only the Authentication, the user must also have the appropriate role assigned in nuDeliverIt to make request to the Web Services API, even if one has access to the portal if Role (DI_Integration) is not assigned to the user, he/she will not be able to make the request.

There are many ways one can use to send requests to nuDeliverIt Web Service API(s), some of them are for example through PHP, CURL or JAVA. Whichever technology one is most familiar with can use that to make request to nuDeliverIt Web Service API(s) and get the required information needed. Following are the two Web Services API(s) available that are most frequently used.

  • https://www.nuvizzapps.com/nuDeliverIt/webservices/api/<ENTITY>/<COMPANY_CODE>
  • https://www.nuvizzapps.com/nuDeliverIt/webservices/api/document/<FILE_GUID>/<COMPANY_CODE>

In the above, the first Web Service API is used to retrieve Load/Route or Stop/Order information and the second Web Service API is used to retrieve the associated Document/Image with a Load/Stop. <ENTITY> can be either Loador Stop(entity name is case insensitive), <FILE_GUID> specifies that actual unique alpha-numeric encoded string that represents the name of the Document, and <COMPANY_CODE> is the unique Company Code assigned to the customer which is used while logging into the portal.

To explain in detail how to use nuDeliverIt Web Service API(s) to retrieve information, CURL is used which is a Command Tool used for sending and getting files/data using URL syntax. It’s an open source tool and is available on most of the operating systems or if it is not available then it can be downloaded and installed from (http://curl.haxx.se). Usage of this tool is very simple and curl –helpprovides detailed information about all available command line parameters. CURL supports many commonly used protocols (including FTP, HTTP, HTTPS etc.).

6.2     Route/Stop Detail Retrieval

To obtain detailed Stop Information for a company say DEMO following curl command can be used to make the Web Service API call as follows:

> curl -X GET -H "Content-Type:application/json" -k -u admin:password 'https://www.nuvizzapps.com/nuDeliverIt/webservices/api/stop/DEMO?stopNbr=69794200&&stopSealNbr=JEFF'

The above command makes a Web Service API call to retrieve details of a STOP having Stop Number as 69794200 and Seal Number being JEFF for the company code DEMO. The username/password for authentication is admin/password and the expected result is of JSON object type. Below is the result returned executing the above command. The highlighted fields in BOLD in the result below shows the parameters passed to retrieve the exact STOP information. You can create your own query using below available fields to obtain STOP or LOAD information which could be very generic say at Company Level or very specific like above.

{
"loadId": {
"loadHeader": {
"loadId": 3145,
"loadNbr": "DEMO000006",
"status": "30",
"origin": "Demo Facility",
"originName": "Demo Delivery",
"originAddr1": "5855 Mountain View Pkwy",
"originAddr2": "",
"originCity": "Norcross",
"originState": "GA",
"originZip": "30093",
"originCountry": "USA",
"totalStops": 4,
"reference": "",
"weight": {
"value": 0
},
"volume": {
"value": 0
},
"companyId": {
"companyId": 138,
"companyName": "Demo Company",
"address1": "5855 Mountain View Pkwy",
"address2": "",
"city": "Norcross",
"state": "GA",
"zip": "30093"
},
"assignedDriver": "David Shawn"
}
},
"stopNbr": "69794200",
"status": "00",
"stopSeq": 1,
"shipmentNbr": "69794200",
"bol": "002480748",
"signatureRequired": false,
"shipToName": "RENEW COMPUTER AS",
"shipToAddr1": "STE 1200",
"shipToAddr2": "5060 AVALON RIDGE PKWY",
"shipToCity": "NORCROSS",
"shipToState": "GA",
"shipToZip": "30071",
"billToName": "DEMO PARENT COMPANY",
"billToAddr1": "1770 SATELLITE BLVD",
"billToCity": "BUFORD",
"billToState": "GA",
"billToZip": "30518",
"billToCountry": "US",
"earliestStartDttm": "Mar 5, 2015 7:00:00 AM",
"latestStartDttm": "Mar 5, 2015 7:00:00 AM",
"totalPallets": 1,
"totalCartons": 1,
"sealNbr": "JEFF",
"documents": [],
"stopDetails": [
{
"product": "KNIVES",
"productIdentifier": "011110-00-2401",
"quantity": {
"uom": "CTN",
"value": 1
},
"weight": {
"uom": "LBS",
"value": 1
},
"volume": {
"value": 0
}
},
{
"product": "CORR BOXES KDF 12 # PER C",
"productIdentifier": "029275-04-2400",
"quantity": {
"uom": "BDL",
"value": 40
},
"weight": {
"uom": "LBS",
"value": 340
},
"volume": {
"value": 0
}
},
{
"product": "FLASHLIGHT",
"productIdentifier": "109800-02-2404",
"quantity": {
"uom": "CTN",
"value": 1
},
"weight": {
"uom": "LBS",
"value": 1
},
"volume": {
"value": 0
}
},
{
"product": "LABELS",
"productIdentifier": "153500-02-2402",
"quantity": {
"uom": "CTN",
"value": 6
},
"weight": {
"uom": "LBS",
"value": 79
},
"volume": {
"value": 0
}
},
{
"product": "PALLET STRETCH WRAP 15PCF",
"productIdentifier": "156830-00-2403",
"quantity": {
"uom": "CTN",
"value": 1
},
"weight": {
"uom": "LBS",
"value": 37
},
"volume": {
"value": 0
}
}
]
}

If any incorrect parameter value is specified, then nothing is returned. For example, if the stopSealNbrparameter value is changed from JEFFto JEFFSthen nothing or [] is returned as there is no stopSealNbr with JEFFS present in the company DEMO.

6.3     Document Retrieval using File GUID

nuDeliverIt Mobile App allows the Carrier/Driver to capture Signature, Image or Signed Documents (BOLs) as part of Load Execution/Delivery of products/goods at Stop(s). A Web Service API is available that can be called to retrieve a specific document for any company by providing the unique identifier assigned to the document by nuDeliverIt and Company Code. Below example demonstrates how to retrieve a sample document and again here for simplicity CURL tool is used to send request and retrieve document information.

> curl –X GET -H "Content-Type:application/octet-stream" -k -u admin:password 'https://www.nuvizzapps.com/nuDeliverIt/webservices/api/document/3cd11644-db8c-4d26-8371-743949573db6/DEMO'

The above command retrieves document associated with the <FILE_GUID> highlighted as bold in above parameter for the company DEMO. Since the result returned is not in a readable format (octet-stream) and the returned value may contain control/special characters that’s not readable the result is not displayed. If the <FILE_GUID> passed is incorrect or not a valid value present in nuDeliverIt portal application, then error message is returned.

6.4     Sample PHP Program

The below sample PHP program gives an idea on how to use PHP program/script to make request to Web Service API(s) call.  Necessary comments have been provided to help one understand the entire flow how to program in PHP. Eventually it calls CURL API to send the Web Service Request and retrieve the result as depicted above in previous 2 sections.

<?php
/*
* A sample simple PHP program to make WEB SERVICE Request to
* nuDeliverIt Application
*/
// config.ini file contains necessary configuration information
// like username, password, baseurl, company code etc. the
// fill should be protected and the content may contain as
// follows:
// base.url = "https://nuvizzapps.com"
// company.code = "DEMO"
// username = "admin"
// password = "password"
$configFile = "config.ini";
// Ensure that the file exists, if so parse the file and extract
// all variable name and associated values into configInfo array
if (file_exists($configFile))
{
$configInfo = parse_ini_file($configFile);
}
// Assign the Company Code, Base URL, User Name and Password
// what was specified and read from the config.ini file.
$companyCode = $configInfo['company.code'];
$baseUrl = $configInfo["base.url"];
$userName = $configInfo["username"];
$password = $configInfo["password"];
// URL Parameters to be passed to the Web Service API as part
// of the request.
$stopNbr = $_GET['stopNbr'];
$stopSealNbr = $_GET['stopSealNbr'];
// Specify the necessary options to be passed to CURL command
$options = array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_AUTOREFERER => false,
CURLOPT_HEADER => false,
CURLOPT_HTTPGET => true,
CURLOPT_HTTPAUTH => CURLAUTH_BASIC,
CURLOPT_USERPWD => $userName . ":" . $password,
);
// Form the full URL request.
$json_url = $baseUrl . '/nuDeliverIt/webservices/api/stop/' . $companyCode . '?stopNbr=' . $stopNbr . '&stopSealNbr=' . $stopSealNbr;
// Initialize the CURL
$ch = curl_init($json_url);
// Set All the optional parameters prior to execution
curl_setopt_array($ch, $options);
// Execute the request to process
$result = curl_exec($ch);
?>

7.   Sample XSD File Formats

nuDeliverIt to Host

XSD schema document for outbound Stop/Order integration. This contains all the stop level fields with associated stop events
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified">
   <xs:element name="DeliverItStopDItoHost">
      <xs:complexType>
         <xs:sequence>
            <xs:element minOccurs="0" name="DocumentID" type="xs:string" />
            <xs:element minOccurs="0" name="CompanyCode" type="xs:string" />
            <xs:element minOccurs="0" name="TriggeredByEvent" type="xs:string" />
            <xs:element minOccurs="0" name="XsiSchemaLocation" type="xs:string" />
            <xs:element name="Stop">
               <xs:complexType>
                  <xs:sequence>
                     <xs:element minOccurs="0" name="AccountNumber" type="xs:string" />
                     <xs:element minOccurs="0" name="ActualDuration" type="xs:string" />
                     <xs:element minOccurs="0" name="BOL" type="xs:string" />
                     <xs:element minOccurs="0" name="BillToAddr1" type="xs:string" />
                     <xs:element minOccurs="0" name="BillToAddr2" type="xs:string" />
                     <xs:element minOccurs="0" name="BillToCity" type="xs:string" />
                     <xs:element minOccurs="0" name="BillToCountry" type="xs:string" />
                     <xs:element minOccurs="0" name="BillToName" type="xs:string" />
                     <xs:element minOccurs="0" name="BillToState" type="xs:string" />
                     <xs:element minOccurs="0" name="BillToZip" type="xs:string" />
                     <xs:element minOccurs="0" name="DeliveryEndDTTM" type="xs:string" />
                     <xs:element minOccurs="0" name="DeliveryStartDTTM" type="xs:string" />
                     <xs:element minOccurs="0" name="DarliestStartDTTM" type="xs:string" />
                     <xs:element minOccurs="0" name="Email" type="xs:string" />
                     <xs:element minOccurs="0" name="EstimatedDuration" type="xs:string" />
                     <xs:element minOccurs="0" name="FaxNumber" type="xs:string" />
                     <xs:element minOccurs="0" name="FreightTerms" type="xs:string" />
                     <xs:element minOccurs="0" name="LatestStartDTTM" type="xs:string" />
                     <xs:element minOccurs="0" name="PhoneNumber" type="xs:string" />
                     <xs:element minOccurs="0" name="SealNbr" type="xs:string" />
                     <xs:element minOccurs="0" name="ServiceCategory" type="xs:string" />
                     <xs:element minOccurs="0" name="ShipToAddr1" type="xs:string" />
                     <xs:element minOccurs="0" name="ShipToAddrs2" type="xs:string" />
                     <xs:element minOccurs="0" name="ShipToCity" type="xs:string" />
                     <xs:element minOccurs="0" name="ShipToCountry" type="xs:string" />
                     <xs:element minOccurs="0" name="ShipToName" type="xs:string" />
                     <xs:element minOccurs="0" name="ShipToState" type="xs:string" />
                     <xs:element minOccurs="0" name="ShipToZip" type="xs:string" />
                     <xs:element minOccurs="0" name="ShipmentNbr" type="xs:string" />
                     <xs:element minOccurs="0" name="SignatureRequired" type="xs:boolean" />
                     <xs:element minOccurs="0" name="Status" type="xs:string" />
                     <xs:element minOccurs="0" name="StopNbr" type="xs:string" />
                     <xs:element minOccurs="0" name="StopSeq" type="xs:int" />
                     <xs:element minOccurs="0" name="StopType" type="xs:string" />
                     <xs:element minOccurs="0" name="TotalCartons" type="xs:int" />
                     <xs:element minOccurs="0" name="TotalPallets" type="xs:int" />
                     <xs:element minOccurs="0" name="WorkType" type="xs:string" />
                     <xs:element name="StopDetails">
                        <xs:complexType>
                           <xs:sequence>
                              <xs:element maxOccurs="unbounded" minOccurs="0" name="StopDetail">
                                 <xs:complexType>
                                    <xs:sequence>
                                       <xs:element minOccurs="0" name="AccountNumber" type="xs:string" />
                                       <xs:element minOccurs="0" name="Comment" type="xs:string" />
                                       <xs:element minOccurs="0" name="ConfirmationType" type="xs:string" />
                                       <xs:element minOccurs="0" name="ConfirmedDQty" type="xs:double" />
                                       <xs:element minOccurs="0" name="LineType" type="xs:string" />
                                       <xs:element minOccurs="0" name="Product" type="xs:string" />
                                       <xs:element minOccurs="0" name="ProductIdentifier" type="xs:string" />
                                       <xs:element minOccurs="0" name="ReferenceText" type="xs:string" />
                                       <xs:element minOccurs="0" name="ServiceCategory" type="xs:string" />
                                       <xs:element minOccurs="0" name="SourceType" type="xs:string" />
                                       <xs:element minOccurs="0" name="StopDetailSeq" type="xs:int" />
                                       <xs:element minOccurs="0" name="UpdatedProductIdentifier" type="xs:string" />
                                       <xs:element name="ConfirmedQuantity">
                                          <xs:complexType>
                                             <xs:simpleContent>
                                                <xs:extension base="xs:float">
                                                   <xs:attribute name="UOM" type="xs:string" use="optional" />
                                                </xs:extension>
                                             </xs:simpleContent>
                                          </xs:complexType>
                                       </xs:element>
                                       <xs:element name="ExpectedQuantity">
                                          <xs:complexType>
                                             <xs:simpleContent>
                                                <xs:extension base="xs:float">
                                                   <xs:attribute name="UOM" type="xs:string" use="optional" />
                                                </xs:extension>
                                             </xs:simpleContent>
                                          </xs:complexType>
                                       </xs:element>
                                       <xs:element name="Volume">
                                          <xs:complexType>
                                             <xs:simpleContent>
                                                <xs:extension base="xs:float">
                                                   <xs:attribute name="UOM" type="xs:string" use="optional" />
                                                </xs:extension>
                                             </xs:simpleContent>
                                          </xs:complexType>
                                       </xs:element>
                                       <xs:element name="Weight">
                                          <xs:complexType>
                                             <xs:simpleContent>
                                                <xs:extension base="xs:float">
                                                   <xs:attribute name="UOM" type="xs:string" use="optional" />
                                                </xs:extension>
                                             </xs:simpleContent>
                                          </xs:complexType>
                                       </xs:element>
                                       <xs:element name="exceptionReason">
                                          <xs:complexType>
                                             <xs:attribute name="Code" type="xs:string" use="optional" />
                                          </xs:complexType>
                                       </xs:element>
                                    </xs:sequence>
                                 </xs:complexType>
                              </xs:element>
                           </xs:sequence>
                        </xs:complexType>
                     </xs:element>
                     <xs:element name="Comments">
                        <xs:complexType>
                           <xs:sequence>
                              <xs:element name="Comment">
                                 <xs:complexType>
                                    <xs:attribute name="Code" type="xs:string" use="optional" />
                                 </xs:complexType>
                              </xs:element>
                           </xs:sequence>
                        </xs:complexType>
                     </xs:element>
                     <xs:element name="Attributes">
                        <xs:complexType>
                           <xs:sequence>
                              <xs:element name="Attribute">
                                 <xs:complexType>
                                    <xs:sequence>
                                       <xs:element minOccurs="0" name="description" type="xs:string" />
                                       <xs:element minOccurs="0" name="name" type="xs:string" />
                                       <xs:element minOccurs="0" name="value" type="xs:string" />
                                    </xs:sequence>
                                 </xs:complexType>
                              </xs:element>
                           </xs:sequence>
                        </xs:complexType>
                     </xs:element>
                     <xs:element name="ExtendedEntities">
                        <xs:complexType>
                           <xs:sequence>
                              <xs:element name="Entity">
                                 <xs:complexType>
                                    <xs:sequence>
                                       <xs:element minOccurs="0" name="EntityName" type="xs:string" />
                                       <xs:element name="EntityRows">
                                          <xs:complexType>
                                             <xs:sequence>
                                                <xs:element name="EntityRow">
                                                   <xs:complexType>
                                                      <xs:sequence>
                                                         <xs:element minOccurs="0" name="EntityGUID" type="xs:string" />
                                                         <xs:element minOccurs="0" name="KeyAttribute" type="xs:string" />
                                                         <xs:element minOccurs="0" name="KeyAttributeValue" type="xs:string" />
                                                         <xs:element name="CustomAttributes">
                                                            <xs:complexType>
                                                               <xs:sequence>
                                                                  <xs:element name="Attribute">
                                                                     <xs:complexType>
                                                                        <xs:sequence>
                                                                           <xs:element minOccurs="0" name="Description" type="xs:string" />
                                                                           <xs:element minOccurs="0" name="Name" type="xs:string" />
                                                                           <xs:element minOccurs="0" name="Value" type="xs:string" />
                                                                        </xs:sequence>
                                                                     </xs:complexType>
                                                                  </xs:element>
                                                               </xs:sequence>
                                                            </xs:complexType>
                                                         </xs:element>
                                                         <xs:element name="Documents">
                                                            <xs:complexType>
                                                               <xs:sequence>
                                                                  <xs:element name="Document">
                                                                     <xs:complexType>
                                                                        <xs:sequence>
                                                                           <xs:element minOccurs="0" name="Description" type="xs:string" />
                                                                           <xs:element minOccurs="0" name="DocumentData" type="xs:string" />
                                                                           <xs:element minOccurs="0" name="DocumentExtType" type="xs:string" />
                                                                           <xs:element minOccurs="0" name="DocumentType" type="xs:string" />
                                                                           <xs:element minOccurs="0" name="Name" type="xs:string" />
                                                                        </xs:sequence>
                                                                     </xs:complexType>
                                                                  </xs:element>
                                                               </xs:sequence>
                                                            </xs:complexType>
                                                         </xs:element>
                                                      </xs:sequence>
                                                   </xs:complexType>
                                                </xs:element>
                                             </xs:sequence>
                                          </xs:complexType>
                                       </xs:element>
                                    </xs:sequence>
                                 </xs:complexType>
                              </xs:element>
                           </xs:sequence>
                        </xs:complexType>
                     </xs:element>
                     <xs:element name="StopExceptions">
                        <xs:complexType>
                           <xs:sequence>
                              <xs:element name="StopException">
                                 <xs:complexType>
                                    <xs:sequence>
                                       <xs:element name="Exception">
                                          <xs:complexType>
                                             <xs:attribute name="Code" type="xs:string" use="optional" />
                                          </xs:complexType>
                                       </xs:element>
                                       <xs:element name="Comment">
                                          <xs:complexType>
                                             <xs:attribute name="Type" type="xs:string" use="optional" />
                                          </xs:complexType>
                                       </xs:element>
                                    </xs:sequence>
                                 </xs:complexType>
                              </xs:element>
                           </xs:sequence>
                        </xs:complexType>
                     </xs:element>
                     <xs:element name="StopAssignment">
                        <xs:complexType>
                           <xs:sequence>
                              <xs:element minOccurs="0" name="CarrierCode" type="xs:string" />
                              <xs:element minOccurs="0" name="Driver" type="xs:string" />
                           </xs:sequence>
                        </xs:complexType>
                     </xs:element>
                     <xs:element name="Events">
                        <xs:complexType>
                           <xs:sequence>
                              <xs:element name="Event">
                                 <xs:complexType>
                                    <xs:sequence>
                                       <xs:element minOccurs="0" name="EventId" type="xs:string" />
                                       <xs:element minOccurs="0" name="EventName" type="xs:string" />
                                       <xs:element minOccurs="0" name="Latitude" type="xs:double" />
                                       <xs:element minOccurs="0" name="Longitude" type="xs:double" />
                                       <xs:element minOccurs="0" name="ReportedDTTM" type="xs:string" />
                                       <xs:element minOccurs="0" name="SignatureImage" type="xs:string" />
                                       <xs:element name="Documents">
                                          <xs:complexType>
                                             <xs:sequence>
                                                <xs:element name="Document">
                                                   <xs:complexType>
                                                      <xs:sequence>
                                                         <xs:element minOccurs="0" name="DocumentCategory" type="xs:string" />
                                                         <xs:element minOccurs="0" name="DocumentData" type="xs:string" />
                                                         <xs:element minOccurs="0" name="DocumentExtType" type="xs:string" />
                                                         <xs:element minOccurs="0" name="DocumentName" type="xs:string" />
                                                         <xs:element minOccurs="0" name="DocumentType" type="xs:string" />
                                                         <xs:element minOccurs="0" name="FileName" type="xs:string" />
                                                         <xs:element minOccurs="0" name="StopSigneeName" type="xs:string" />
                                                      </xs:sequence>
                                                   </xs:complexType>
                                                </xs:element>
                                             </xs:sequence>
                                          </xs:complexType>
                                       </xs:element>
                                    </xs:sequence>
                                 </xs:complexType>
                              </xs:element>
                           </xs:sequence>
                        </xs:complexType>
                     </xs:element>
                     <xs:element name="Volume">
                        <xs:complexType>
                           <xs:attribute name="UOM" type="xs:string" use="optional" />
                        </xs:complexType>
                     </xs:element>
                     <xs:element name="Weight">
                        <xs:complexType>
                           <xs:attribute name="UOM" type="xs:string" use="optional" />
                        </xs:complexType>
                     </xs:element>
                  </xs:sequence>
               </xs:complexType>
            </xs:element>
         </xs:sequence>
      </xs:complexType>
   </xs:element>
</xs:schema>
XSD schema document for outbound load integration. This contains all the associated events & locations
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified">
   <xs:element name="DeliverItLoadOut">
      <xs:complexType>
         <xs:sequence>
            <xs:element minOccurs="0" name="DocumentID" type="xs:string" />
            <xs:element minOccurs="0" name="CompanyCode" type="xs:string" />
            <xs:element minOccurs="0" name="TriggeredByEvent" type="xs:string" />
            <xs:element minOccurs="0" name="XsiSchemaLocation" type="xs:string" />
            <xs:element name="Loads">
               <xs:complexType>
                  <xs:sequence>
                     <xs:element name="Load">
                        <xs:complexType>
                           <xs:sequence>
                              <xs:element maxOccurs="unbounded" minOccurs="0" name="LoadHeader">
                                 <xs:complexType>
                                    <xs:sequence>
                                       <xs:element minOccurs="0" name="ActualEndDTTM" type="xs:string" />
                                       <xs:element minOccurs="0" name="ActualStartDTTM" type="xs:string" />
                                       <xs:element minOccurs="0" name="ArrivedDTTM" type="xs:string" />
                                       <xs:element minOccurs="0" name="SepartedDTTM" type="xs:string" />
                                       <xs:element minOccurs="0" name="EarliestStartDTTM" type="xs:string" />
                                       <xs:element minOccurs="0" name="LatestStartDTTM" type="xs:string" />
                                       <xs:element minOccurs="0" name="LoadNbr" type="xs:string" />
                                       <xs:element minOccurs="0" name="MasterBOL" type="xs:string" />
                                       <xs:element minOccurs="0" name="Origin" type="xs:string" />
                                       <xs:element minOccurs="0" name="OriginAddr1" type="xs:string" />
                                       <xs:element minOccurs="0" name="OriginAddr2" type="xs:string" />
                                       <xs:element minOccurs="0" name="OriginCity" type="xs:string" />
                                       <xs:element minOccurs="0" name="originCountry" type="xs:string" />
                                       <xs:element minOccurs="0" name="OriginLatitude" type="xs:double" />
                                       <xs:element minOccurs="0" name="OriginLongitude" type="xs:double" />
                                       <xs:element minOccurs="0" name="OriginName" type="xs:string" />
                                       <xs:element minOccurs="0" name="OriginPhoneNumber" type="xs:string" />
                                       <xs:element minOccurs="0" name="OriginState" type="xs:string" />
                                       <xs:element minOccurs="0" name="OriginZip" type="xs:string" />
                                       <xs:element minOccurs="0" name="ProNbr" type="xs:string" />
                                       <xs:element minOccurs="0" name="Reference" type="xs:string" />
                                       <xs:element minOccurs="0" name="SealNbr" type="xs:string" />
                                       <xs:element minOccurs="0" name="Status" type="xs:string" />
                                       <xs:element minOccurs="0" name="StopSeqOrder" type="xs:int" />
                                       <xs:element minOccurs="0" name="TotalCartons" type="xs:int" />
                                       <xs:element minOccurs="0" name="TotalPallets" type="xs:int" />
                                       <xs:element minOccurs="0" name="TractorNbr" type="xs:string" />
                                       <xs:element minOccurs="0" name="TrailerNbr" type="xs:string" />
                                       <xs:element minOccurs="0" name="TrailerSize" type="xs:string" />
                                       <xs:element minOccurs="0" name="TrailerType" type="xs:string" />
                                       <xs:element name="CustomAttributes">
                                          <xs:complexType>
                                             <xs:sequence>
                                                <xs:element name="Attribute">
                                                   <xs:complexType>
                                                      <xs:sequence>
                                                         <xs:element minOccurs="0" name="Description" type="xs:string" />
                                                         <xs:element minOccurs="0" name="Name" type="xs:string" />
                                                         <xs:element minOccurs="0" name="Value" type="xs:string" />
                                                      </xs:sequence>
                                                   </xs:complexType>
                                                </xs:element>
                                             </xs:sequence>
                                          </xs:complexType>
                                       </xs:element>
                                       <xs:element name="Comments">
                                          <xs:complexType>
                                             <xs:sequence>
                                                <xs:element name="Comment">
                                                   <xs:complexType>
                                                      <xs:attribute name="Code" type="xs:string" use="optional" />
                                                   </xs:complexType>
                                                </xs:element>
                                             </xs:sequence>
                                          </xs:complexType>
                                       </xs:element>
                                       <xs:element name="Volume">
                                          <xs:complexType>
                                             <xs:attribute name="UOM" type="xs:string" use="optional" />
                                          </xs:complexType>
                                       </xs:element>
                                       <xs:element name="Weight">
                                          <xs:complexType>
                                             <xs:attribute name="UOM" type="xs:string" use="optional" />
                                          </xs:complexType>
                                       </xs:element>
                                    </xs:sequence>
                                 </xs:complexType>
                              </xs:element>
                              <xs:element maxOccurs="unbounded" minOccurs="0" name="LoadAssignment">
                                 <xs:complexType>
                                    <xs:sequence>
                                       <xs:element minOccurs="0" name="CarrierCode" type="xs:string" />
                                       <xs:element name="Driver">
                                          <xs:complexType>
                                             <xs:sequence>
                                                <xs:element minOccurs="0" name="DriverCDL" type="xs:string" />
                                                <xs:element minOccurs="0" name="DriverEmail" type="xs:string" />
                                                <xs:element minOccurs="0" name="DriverName" type="xs:string" />
                                             </xs:sequence>
                                          </xs:complexType>
                                       </xs:element>
                                    </xs:sequence>
                                 </xs:complexType>
                              </xs:element>
                              <xs:element name="ExtendedEntities">
                                 <xs:complexType>
                                    <xs:sequence>
                                       <xs:element name="Entity">
                                          <xs:complexType>
                                             <xs:sequence>
                                                <xs:element minOccurs="0" name="EntityName" type="xs:string" />
                                                <xs:element name="EntityRows">
                                                   <xs:complexType>
                                                      <xs:sequence>
                                                         <xs:element name="EntityRow">
                                                            <xs:complexType>
                                                               <xs:sequence>
                                                                  <xs:element minOccurs="0" name="EntityGUID" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="KeyAttribute" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="KeyAttributeValue" type="xs:string" />
                                                                  <xs:element name="CustomAttributes">
                                                                     <xs:complexType>
                                                                        <xs:sequence>
                                                                           <xs:element name="Attribute">
                                                                              <xs:complexType>
                                                                                 <xs:sequence>
                                                                                    <xs:element minOccurs="0" name="Description" type="xs:string" />
                                                                                    <xs:element minOccurs="0" name="Name" type="xs:string" />
                                                                                    <xs:element minOccurs="0" name="Value" type="xs:string" />
                                                                                 </xs:sequence>
                                                                              </xs:complexType>
                                                                           </xs:element>
                                                                        </xs:sequence>
                                                                     </xs:complexType>
                                                                  </xs:element>
                                                                  <xs:element name="Documents">
                                                                     <xs:complexType>
                                                                        <xs:sequence>
                                                                           <xs:element name="Document">
                                                                              <xs:complexType>
                                                                                 <xs:sequence>
                                                                                    <xs:element minOccurs="0" name="Description" type="xs:string" />
                                                                                    <xs:element minOccurs="0" name="DocumentData" type="xs:string" />
                                                                                    <xs:element minOccurs="0" name="DocumentExtType" type="xs:string" />
                                                                                    <xs:element minOccurs="0" name="DocumentType" type="xs:string" />
                                                                                    <xs:element minOccurs="0" name="Name" type="xs:string" />
                                                                                 </xs:sequence>
                                                                              </xs:complexType>
                                                                           </xs:element>
                                                                        </xs:sequence>
                                                                     </xs:complexType>
                                                                  </xs:element>
                                                               </xs:sequence>
                                                            </xs:complexType>
                                                         </xs:element>
                                                      </xs:sequence>
                                                   </xs:complexType>
                                                </xs:element>
                                             </xs:sequence>
                                          </xs:complexType>
                                       </xs:element>
                                    </xs:sequence>
                                 </xs:complexType>
                              </xs:element>
                              <xs:element name="Events">
                                 <xs:complexType>
                                    <xs:sequence>
                                       <xs:element name="Event">
                                          <xs:complexType>
                                             <xs:sequence>
                                                <xs:element minOccurs="0" name="EventId" type="xs:string" />
                                                <xs:element minOccurs="0" name="EventName" type="xs:string" />
                                                <xs:element minOccurs="0" name="Latitude" type="xs:double" />
                                                <xs:element minOccurs="0" name="Longitude" type="xs:double" />
                                                <xs:element minOccurs="0" name="ReportedDTTM" type="xs:string" />
                                                <xs:element minOccurs="0" name="SignatureImage" type="xs:string" />
                                                <xs:element name="Documents">
                                                   <xs:complexType>
                                                      <xs:sequence>
                                                         <xs:element name="Document">
                                                            <xs:complexType>
                                                               <xs:sequence>
                                                                  <xs:element minOccurs="0" name="DocumentCategory" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="DocumentData" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="DocumentExtType" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="DocumentName" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="DocumentType" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="FileName" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="StopSigneeName" type="xs:string" />
                                                               </xs:sequence>
                                                            </xs:complexType>
                                                         </xs:element>
                                                      </xs:sequence>
                                                   </xs:complexType>
                                                </xs:element>
                                             </xs:sequence>
                                          </xs:complexType>
                                       </xs:element>
                                    </xs:sequence>
                                 </xs:complexType>
                              </xs:element>
                              <xs:element name="Stops">
                                 <xs:complexType>
                                    <xs:sequence>
                                       <xs:element name="Stop">
                                          <xs:complexType>
                                             <xs:sequence>
                                                <xs:element minOccurs="0" name="AccountNumber" type="xs:string" />
                                                <xs:element minOccurs="0" name="ActualDuration" type="xs:string" />
                                                <xs:element minOccurs="0" name="BOL" type="xs:string" />
                                                <xs:element minOccurs="0" name="BillToAddr1" type="xs:string" />
                                                <xs:element minOccurs="0" name="BillToAddr2" type="xs:string" />
                                                <xs:element minOccurs="0" name="BillToCity" type="xs:string" />
                                                <xs:element minOccurs="0" name="BillToCountry" type="xs:string" />
                                                <xs:element minOccurs="0" name="BillToName" type="xs:string" />
                                                <xs:element minOccurs="0" name="BillToState" type="xs:string" />
                                                <xs:element minOccurs="0" name="BillToZip" type="xs:string" />
                                                <xs:element minOccurs="0" name="DeliveryEndDTTM" type="xs:string" />
                                                <xs:element minOccurs="0" name="DeliveryStartDTTM" type="xs:string" />
                                                <xs:element minOccurs="0" name="DarliestStartDTTM" type="xs:string" />
                                                <xs:element minOccurs="0" name="Email" type="xs:string" />
                                                <xs:element minOccurs="0" name="EstimatedDuration" type="xs:string" />
                                                <xs:element minOccurs="0" name="FaxNumber" type="xs:string" />
                                                <xs:element minOccurs="0" name="FreightTerms" type="xs:string" />
                                                <xs:element minOccurs="0" name="LatestStartDTTM" type="xs:string" />
                                                <xs:element minOccurs="0" name="PhoneNumber" type="xs:string" />
                                                <xs:element minOccurs="0" name="SealNbr" type="xs:string" />
                                                <xs:element minOccurs="0" name="ServiceCategory" type="xs:string" />
                                                <xs:element minOccurs="0" name="ShipToAddr1" type="xs:string" />
                                                <xs:element minOccurs="0" name="ShipToAddrs2" type="xs:string" />
                                                <xs:element minOccurs="0" name="ShipToCity" type="xs:string" />
                                                <xs:element minOccurs="0" name="ShipToCountry" type="xs:string" />
                                                <xs:element minOccurs="0" name="ShipToName" type="xs:string" />
                                                <xs:element minOccurs="0" name="ShipToState" type="xs:string" />
                                                <xs:element minOccurs="0" name="ShipToZip" type="xs:string" />
                                                <xs:element minOccurs="0" name="ShipmentNbr" type="xs:string" />
                                                <xs:element minOccurs="0" name="SignatureRequired" type="xs:boolean" />
                                                <xs:element minOccurs="0" name="Status" type="xs:string" />
                                                <xs:element minOccurs="0" name="StopNbr" type="xs:string" />
                                                <xs:element minOccurs="0" name="StopSeq" type="xs:int" />
                                                <xs:element minOccurs="0" name="StopType" type="xs:string" />
                                                <xs:element minOccurs="0" name="TotalCartons" type="xs:int" />
                                                <xs:element minOccurs="0" name="TotalPallets" type="xs:int" />
                                                <xs:element minOccurs="0" name="WorkType" type="xs:string" />
                                                <xs:element name="StopDetails">
                                                   <xs:complexType>
                                                      <xs:sequence>
                                                         <xs:element maxOccurs="unbounded" minOccurs="0" name="StopDetail">
                                                            <xs:complexType>
                                                               <xs:sequence>
                                                                  <xs:element minOccurs="0" name="AccountNumber" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="Comment" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="ConfirmationType" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="ConfirmedDQty" type="xs:double" />
                                                                  <xs:element minOccurs="0" name="LineType" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="Product" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="ProductIdentifier" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="ReferenceText" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="ServiceCategory" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="SourceType" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="StopDetailSeq" type="xs:int" />
                                                                  <xs:element minOccurs="0" name="UpdatedProductIdentifier" type="xs:string" />
                                                                  <xs:element name="ConfirmedQuantity">
                                                                     <xs:complexType>
                                                                        <xs:simpleContent>
                                                                           <xs:extension base="xs:float">
                                                                              <xs:attribute name="UOM" type="xs:string" use="optional" />
                                                                           </xs:extension>
                                                                        </xs:simpleContent>
                                                                     </xs:complexType>
                                                                  </xs:element>
                                                                  <xs:element name="ExpectedQuantity">
                                                                     <xs:complexType>
                                                                        <xs:simpleContent>
                                                                           <xs:extension base="xs:float">
                                                                              <xs:attribute name="UOM" type="xs:string" use="optional" />
                                                                           </xs:extension>
                                                                        </xs:simpleContent>
                                                                     </xs:complexType>
                                                                  </xs:element>
                                                                  <xs:element name="Volume">
                                                                     <xs:complexType>
                                                                        <xs:simpleContent>
                                                                           <xs:extension base="xs:float">
                                                                              <xs:attribute name="UOM" type="xs:string" use="optional" />
                                                                           </xs:extension>
                                                                        </xs:simpleContent>
                                                                     </xs:complexType>
                                                                  </xs:element>
                                                                  <xs:element name="Weight">
                                                                     <xs:complexType>
                                                                        <xs:simpleContent>
                                                                           <xs:extension base="xs:float">
                                                                              <xs:attribute name="UOM" type="xs:string" use="optional" />
                                                                           </xs:extension>
                                                                        </xs:simpleContent>
                                                                     </xs:complexType>
                                                                  </xs:element>
                                                                  <xs:element name="exceptionReason">
                                                                     <xs:complexType>
                                                                        <xs:attribute name="Code" type="xs:string" use="optional" />
                                                                     </xs:complexType>
                                                                  </xs:element>
                                                               </xs:sequence>
                                                            </xs:complexType>
                                                         </xs:element>
                                                      </xs:sequence>
                                                   </xs:complexType>
                                                </xs:element>
                                                <xs:element name="Comments">
                                                   <xs:complexType>
                                                      <xs:sequence>
                                                         <xs:element name="Comment">
                                                            <xs:complexType>
                                                               <xs:attribute name="Code" type="xs:string" use="optional" />
                                                            </xs:complexType>
                                                         </xs:element>
                                                      </xs:sequence>
                                                   </xs:complexType>
                                                </xs:element>
                                                <xs:element name="Attributes">
                                                   <xs:complexType>
                                                      <xs:sequence>
                                                         <xs:element name="Attribute">
                                                            <xs:complexType>
                                                               <xs:sequence>
                                                                  <xs:element minOccurs="0" name="description" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="name" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="value" type="xs:string" />
                                                               </xs:sequence>
                                                            </xs:complexType>
                                                         </xs:element>
                                                      </xs:sequence>
                                                   </xs:complexType>
                                                </xs:element>
                                                <xs:element name="ExtendedEntities">
                                                   <xs:complexType>
                                                      <xs:sequence>
                                                         <xs:element name="Entity">
                                                            <xs:complexType>
                                                               <xs:sequence>
                                                                  <xs:element minOccurs="0" name="EntityName" type="xs:string" />
                                                                  <xs:element name="EntityRows">
                                                                     <xs:complexType>
                                                                        <xs:sequence>
                                                                           <xs:element name="EntityRow">
                                                                              <xs:complexType>
                                                                                 <xs:sequence>
                                                                                    <xs:element minOccurs="0" name="EntityGUID" type="xs:string" />
                                                                                    <xs:element minOccurs="0" name="KeyAttribute" type="xs:string" />
                                                                                    <xs:element minOccurs="0" name="KeyAttributeValue" type="xs:string" />
                                                                                    <xs:element name="CustomAttributes">
                                                                                       <xs:complexType>
                                                                                          <xs:sequence>
                                                                                             <xs:element name="Attribute">
                                                                                                <xs:complexType>
                                                                                                   <xs:sequence>
                                                                                                      <xs:element minOccurs="0" name="Description" type="xs:string" />
                                                                                                      <xs:element minOccurs="0" name="Name" type="xs:string" />
                                                                                                      <xs:element minOccurs="0" name="Value" type="xs:string" />
                                                                                                   </xs:sequence>
                                                                                                </xs:complexType>
                                                                                             </xs:element>
                                                                                          </xs:sequence>
                                                                                       </xs:complexType>
                                                                                    </xs:element>
                                                                                    <xs:element name="Documents">
                                                                                       <xs:complexType>
                                                                                          <xs:sequence>
                                                                                             <xs:element name="Document">
                                                                                                <xs:complexType>
                                                                                                   <xs:sequence>
                                                                                                      <xs:element minOccurs="0" name="Description" type="xs:string" />
                                                                                                      <xs:element minOccurs="0" name="DocumentData" type="xs:string" />
                                                                                                      <xs:element minOccurs="0" name="DocumentExtType" type="xs:string" />
                                                                                                      <xs:element minOccurs="0" name="DocumentType" type="xs:string" />
                                                                                                      <xs:element minOccurs="0" name="Name" type="xs:string" />
                                                                                                   </xs:sequence>
                                                                                                </xs:complexType>
                                                                                             </xs:element>
                                                                                          </xs:sequence>
                                                                                       </xs:complexType>
                                                                                    </xs:element>
                                                                                 </xs:sequence>
                                                                              </xs:complexType>
                                                                           </xs:element>
                                                                        </xs:sequence>
                                                                     </xs:complexType>
                                                                  </xs:element>
                                                               </xs:sequence>
                                                            </xs:complexType>
                                                         </xs:element>
                                                      </xs:sequence>
                                                   </xs:complexType>
                                                </xs:element>
                                                <xs:element name="StopExceptions">
                                                   <xs:complexType>
                                                      <xs:sequence>
                                                         <xs:element name="StopException">
                                                            <xs:complexType>
                                                               <xs:sequence>
                                                                  <xs:element name="Exception">
                                                                     <xs:complexType>
                                                                        <xs:attribute name="Code" type="xs:string" use="optional" />
                                                                     </xs:complexType>
                                                                  </xs:element>
                                                                  <xs:element name="Comment">
                                                                     <xs:complexType>
                                                                        <xs:attribute name="Type" type="xs:string" use="optional" />
                                                                     </xs:complexType>
                                                                  </xs:element>
                                                               </xs:sequence>
                                                            </xs:complexType>
                                                         </xs:element>
                                                      </xs:sequence>
                                                   </xs:complexType>
                                                </xs:element>
                                                <xs:element name="StopAssignment">
                                                   <xs:complexType>
                                                      <xs:sequence>
                                                         <xs:element minOccurs="0" name="CarrierCode" type="xs:string" />
                                                         <xs:element minOccurs="0" name="Driver" type="xs:string" />
                                                      </xs:sequence>
                                                   </xs:complexType>
                                                </xs:element>
                                                <xs:element name="Events">
                                                   <xs:complexType>
                                                      <xs:sequence>
                                                         <xs:element name="Event">
                                                            <xs:complexType>
                                                               <xs:sequence>
                                                                  <xs:element minOccurs="0" name="EventId" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="EventName" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="Latitude" type="xs:double" />
                                                                  <xs:element minOccurs="0" name="Longitude" type="xs:double" />
                                                                  <xs:element minOccurs="0" name="ReportedDTTM" type="xs:string" />
                                                                  <xs:element minOccurs="0" name="SignatureImage" type="xs:string" />
                                                                  <xs:element name="Documents">
                                                                     <xs:complexType>
                                                                        <xs:sequence>
                                                                           <xs:element name="Document">
                                                                              <xs:complexType>
                                                                                 <xs:sequence>
                                                                                    <xs:element minOccurs="0" name="DocumentCategory" type="xs:string" />
                                                                                    <xs:element minOccurs="0" name="DocumentData" type="xs:string" />
                                                                                    <xs:element minOccurs="0" name="DocumentExtType" type="xs:string" />
                                                                                    <xs:element minOccurs="0" name="DocumentName" type="xs:string" />
                                                                                    <xs:element minOccurs="0" name="DocumentType" type="xs:string" />
                                                                                    <xs:element minOccurs="0" name="FileName" type="xs:string" />
                                                                                    <xs:element minOccurs="0" name="StopSigneeName" type="xs:string" />
                                                                                 </xs:sequence>
                                                                              </xs:complexType>
                                                                           </xs:element>
                                                                        </xs:sequence>
                                                                     </xs:complexType>
                                                                  </xs:element>
                                                               </xs:sequence>
                                                            </xs:complexType>
                                                         </xs:element>
                                                      </xs:sequence>
                                                   </xs:complexType>
                                                </xs:element>
                                                <xs:element name="Volume">
                                                   <xs:complexType>
                                                      <xs:attribute name="UOM" type="xs:string" use="optional" />
                                                   </xs:complexType>
                                                </xs:element>
                                                <xs:element name="Weight">
                                                   <xs:complexType>
                                                      <xs:attribute name="UOM" type="xs:string" use="optional" />
                                                   </xs:complexType>
                                                </xs:element>
                                             </xs:sequence>
                                          </xs:complexType>
                                       </xs:element>
                                    </xs:sequence>
                                 </xs:complexType>
                              </xs:element>
                           </xs:sequence>
                        </xs:complexType>
                     </xs:element>
                  </xs:sequence>
               </xs:complexType>
            </xs:element>
         </xs:sequence>
      </xs:complexType>
   </xs:element>
</xs:schema>
		

XSD schema document for inbound Stop/Order integration

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0">
   <xs:element name="di:DeliverItStop">
      <xs:complexType>
         <xs:sequence>
            <xs:element name="di:DocumentID" type="xs:string" minOccurs="0" />
            <xs:element name="di:CompanyCode" type="xs:string" minOccurs="0" />
            <xs:element name="di:Stops">
               <xs:complexType>
                  <xs:sequence>
                     <xs:element name="di:Stop">
                        <xs:complexType>
                           <xs:sequence>
                              <xs:element name="di:AccountNumber" type="xs:string" minOccurs="0" />
                              <xs:element name="di:BillToAddr1" type="xs:string" minOccurs="0" />
                              <xs:element name="di:BillToAddr2" type="xs:string" minOccurs="0" />
                              <xs:element name="di:BillToCity" type="xs:string" minOccurs="0" />
                              <xs:element name="di:BillToCountry" type="xs:string" minOccurs="0" />
                              <xs:element name="di:BillToName" type="xs:string" minOccurs="0" />
                              <xs:element name="di:BillToState" type="xs:string" minOccurs="0" />
                              <xs:element name="di:BillToZip" type="xs:string" minOccurs="0" />
                              <xs:element name="di:BOL" type="xs:string" minOccurs="0" />
                              <xs:element name="di:Comments">
                                 <xs:complexType>
                                    <xs:sequence>
                                       <xs:element name="di:Comment">
                                          <xs:complexType>
                                             <xs:attribute name="Type" type="xs:String" />
                                          </xs:complexType>
                                       </xs:element>
                                    </xs:sequence>
                                 </xs:complexType>
                              </xs:element>
                              <xs:element name="di:CompletionStatus" type="xs:string" minOccurs="0" />
                              <xs:element name="di:CustomAttributes">
                                 <xs:complexType>
                                    <xs:sequence>
                                       <xs:element name="di:CustomAttribute">
                                          <xs:complexType>
                                             <xs:sequence>
                                                <xs:element name="di:KeyField" type="xs:string" minOccurs="0" />
                                                <xs:element name="di:KeyValue" type="xs:string" minOccurs="0" />
                                             </xs:sequence>
                                          </xs:complexType>
                                       </xs:element>
                                    </xs:sequence>
                                 </xs:complexType>
                              </xs:element>
                              <xs:element name="di:CustomerVisibility">
                                 <xs:complexType>
                                    <xs:sequence>
                                       <xs:element name="di:CustomerVisibility" type="xs:string" minOccurs="0" />
                                    </xs:sequence>
                                 </xs:complexType>
                              </xs:element>
                              <xs:element name="di:Documents">
                                 <xs:complexType>
                                    <xs:sequence>
                                       <xs:element name="di:Document">
                                          <xs:complexType>
                                             <xs:sequence>
                                                <xs:element name="di:Description" type="xs:string" minOccurs="0" />
                                                <xs:element name="di:DispositionType" type="xs:string" minOccurs="0" />
                                                <xs:element name="di:DocSignatories">
                                                   <xs:complexType>
                                                      <xs:sequence>
                                                         <xs:element name="di:DocSignatory">
                                                            <xs:complexType>
                                                               <xs:sequence>
                                                                  <xs:element name="di:Optional" type="xs:string" minOccurs="0" />
                                                                  <xs:element name="di:Role" type="xs:string" minOccurs="0" />
                                                                  <xs:element name="di:SignatoryName" type="xs:string" minOccurs="0" />
                                                               </xs:sequence>
                                                            </xs:complexType>
                                                         </xs:element>
                                                      </xs:sequence>
                                                   </xs:complexType>
                                                </xs:element>
                                                <xs:element name="di:DocumentCategory" type="xs:string" minOccurs="0" />
                                                <xs:element name="di:DocumentData" type="xs:string" minOccurs="0" />
                                                <xs:element name="di:DocumentExtType" type="xs:string" minOccurs="0" />
                                                <xs:element name="di:DocumentName" type="xs:string" minOccurs="0" />
                                                <xs:element name="di:DocumentType" type="xs:string" minOccurs="0" />
                                                <xs:element name="di:DocumentURL" type="xs:string" minOccurs="0" />
                                                <xs:element name="di:Reference" type="xs:string" minOccurs="0" />
                                             </xs:sequence>
                                          </xs:complexType>
                                       </xs:element>
                                    </xs:sequence>
                                 </xs:complexType>
                              </xs:element>
                              <xs:element name="di:EarliestStartDTTM" type="xs:dateTime" minOccurs="0" />
                              <xs:element name="di:Email" type="xs:string" minOccurs="0" />
                              <xs:element name="di:EstimatedDuration" type="xs:int" minOccurs="0" />
                              <xs:element name="di:FaxNumber" type="xs:string" minOccurs="0" />
                              <xs:element name="di:FreightTerms" type="xs:string" minOccurs="0" />
                              <xs:element name="di:Function" type="xs:string" minOccurs="0" />
                              <xs:element name="di:LatestStartDTTM" type="xs:dateTime" minOccurs="0" />
                              <xs:element name="di:Latitude" type="xs:double" minOccurs="0" />
                              <xs:element name="di:Longitude" type="xs:double" minOccurs="0" />
                              <xs:element name="di:PhoneNumber" type="xs:string" minOccurs="0" />
                              <xs:element name="di:ProNumber" type="xs:string" minOccurs="0" />
                              <xs:element name="di:Reference1" type="xs:string" minOccurs="0" />
                              <xs:element name="di:Reference2" type="xs:string" minOccurs="0" />
                              <xs:element name="di:RouteCreationTemplateName" type="xs:string" minOccurs="0" />
                              <xs:element name="di:SealNbr" type="xs:string" minOccurs="0" />
                              <xs:element name="di:ServiceCategory" type="xs:string" minOccurs="0" />
                              <xs:element name="di:ShipToAddr1" type="xs:string" minOccurs="0" />
                              <xs:element name="di:ShipToAddr2" type="xs:string" minOccurs="0" />
                              <xs:element name="di:ShipToCity" type="xs:string" minOccurs="0" />
                              <xs:element name="di:ShipToContactName" type="xs:string" minOccurs="0" />
                              <xs:element name="di:ShipToCountry" type="xs:string" minOccurs="0" />
                              <xs:element name="di:ShipToLandmark" type="xs:string" minOccurs="0" />
                              <xs:element name="di:ShipToName" type="xs:string" minOccurs="0" />
                              <xs:element name="di:ShipToState" type="xs:string" minOccurs="0" />
                              <xs:element name="di:ShipToZip" type="xs:string" minOccurs="0" />
                              <xs:element name="di:ShipmentNbr" type="xs:string" minOccurs="0" />
                              <xs:element name="di:SignatureRequired" type="xs:boolean" minOccurs="0" />
                              <xs:element name="di:SMSNumber" type="xs:string" minOccurs="0" />
                              <xs:element name="di:StopAccessorials">
                                 <xs:complexType>
                                    <xs:sequence>
                                       <xs:element name="di:Accessorial">
                                          <xs:complexType>
                                             <xs:sequence>
                                                <xs:element name="di:Code" type="xs:string" minOccurs="0" />
                                                <xs:element name="di:Comments" type="xs:string" minOccurs="0" />
                                             </xs:sequence>
                                          </xs:complexType>
                                       </xs:element>
                                    </xs:sequence>
                                 </xs:complexType>
                              </xs:element>
                              <xs:element name="di:StopAssignment">
                                 <xs:complexType>
                                    <xs:sequence>
                                       <xs:element name="di:CarrierCode" type="xs:string" minOccurs="0" />
                                       <xs:element name="di:AssignedByCompanyCode" type="xs:string" minOccurs="0" />
                                    </xs:sequence>
                                 </xs:complexType>
                              </xs:element>
                              <xs:element name="di:StopDetails">
                                 <xs:complexType>
                                    <xs:sequence>
                                       <xs:element name="di:StopDetail">
                                          <xs:complexType>
                                             <xs:sequence>
                                                <xs:element name="di:AccountNumber" type="xs:string" minOccurs="0" />
                                                <xs:element name="di:ConfirmationType" type="xs:string" minOccurs="0" />
                                                <xs:element name="di:CustomAttributes">
                                                   <xs:complexType>
                                                      <xs:sequence>
                                                         <xs:element name="di:CustomAttribute">
                                                            <xs:complexType>
                                                               <xs:sequence>
                                                                  <xs:element name="di:KeyField" type="xs:string" minOccurs="0" />
                                                                  <xs:element name="di:KeyValue" type="xs:string" minOccurs="0" />
                                                               </xs:sequence>
                                                            </xs:complexType>
                                                         </xs:element>
                                                      </xs:sequence>
                                                   </xs:complexType>
                                                </xs:element>
                                                <xs:element name="di:LineType" type="xs:string" minOccurs="0" />
                                                <xs:element name="di:OriginalLineNumber" type="xs:int" minOccurs="0" />
                                                <xs:element name="di:Product" type="xs:string" minOccurs="0" />
                                                <xs:element name="di:ProductIdentifier" type="xs:string" minOccurs="0" />
                                                <xs:element name="di:Quantity">
                                                   <xs:complexType>
                                                      <xs:attribute name="UOM" type="xs:string" />
                                                   </xs:complexType>
                                                </xs:element>
                                                <xs:element name="di:ReferenceText" type="xs:string" minOccurs="0" />
                                                <xs:element name="di:ServiceCategory" type="xs:string" minOccurs="0" />
                                                <xs:element name="di:StopDetailSeq" type="xs:int" minOccurs="0" />
                                                <xs:element name="di:UpdatedProductIdentifier" type="xs:string" minOccurs="0" />
                                                <xs:element name="di:Weight">
                                                   <xs:complexType>
                                                      <xs:attribute name="UOM" type="xs:string" />
                                                   </xs:complexType>
                                                </xs:element>
                                                <xs:element name="di:Volume">
                                                   <xs:complexType>
                                                      <xs:attribute name="UOM" type="xs:string" />
                                                   </xs:complexType>
                                                </xs:element>
                                             </xs:sequence>
                                          </xs:complexType>
                                       </xs:element>
                                    </xs:sequence>
                                 </xs:complexType>
                              </xs:element>
                              <xs:element name="di:StopNbr" type="xs:string" minOccurs="0" />
                              <xs:element name="di:StopPriority" type="xs:string" minOccurs="0" />
                              <xs:element name="di:StopSeq" type="xs:int" minOccurs="0" />
                              <xs:element name="di:StopType" type="xs:string" minOccurs="0" />
                              <xs:element name="di:TotalCartons" type="xs:int" minOccurs="0" />
                              <xs:element name="di:TotalPallets" type="xs:int" minOccurs="0" />
                              <xs:element name="di:UseForRouteCreationTemplate" type="xs:string" minOccurs="0" />
                              <xs:element name="di:Weight">
                                 <xs:complexType>
                                    <xs:attribute name="UOM" type="xs:string" />
                                 </xs:complexType>
                              </xs:element>
                              <xs:element name="di:Volume">
                                 <xs:complexType>
                                    <xs:attribute name="UOM" type="xs:string" />
                                 </xs:complexType>
                              </xs:element>
                              <xs:element name="di:WorkType" type="xs:string" minOccurs="0" />
                           </xs:sequence>
                        </xs:complexType>
                     </xs:element>
                  </xs:sequence>
               </xs:complexType>
            </xs:element>
         </xs:sequence>
         <xs:attribute name="schemaLocation" type="xs:String" />
         <xs:attribute name="xmlns:di" type="xs:String" default="http://www.nuvizzards.com/schemas/deliverit/Stops" />
      </xs:complexType>
   </xs:element>
</xs:schema>

Sample Stop web service response XSD schema definition

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0">
   <xs:complexType name="deliverItStopResponse">
      <xs:sequence>
         <xs:element name="documentId" type="xs:string" minOccurs="0" />
         <xs:element name="errors" type="errorType" nillable="true" minOccurs="0" maxOccurs="unbounded" />
         <xs:element name="identifiers" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded" />
         <xs:element name="partnerCode" type="xs:string" minOccurs="0" />
         <xs:element name="result" type="responseResultType" minOccurs="0" />
         <xs:element name="status" type="xs:int" minOccurs="0" />
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="errorType">
      <xs:sequence>
         <xs:element name="errorCode" type="xs:string" minOccurs="0" />
         <xs:element name="errorDescription" type="xs:string" minOccurs="0" />
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="responseResultType">
      <xs:sequence>
         <xs:element name="recordsCreated" type="xs:int" minOccurs="0" />
         <xs:element name="recordsDeleted" type="xs:int" minOccurs="0" />
         <xs:element name="recordsUpdated" type="xs:int" minOccurs="0" />
      </xs:sequence>
   </xs:complexType>
</xs:schema>

Sample stop level XML schema definition with minimum fields for integration for inbound (host to nuDeliverIt).

<?xml version="1.0" encoding="UTF-8"?>
<di:DeliverItStops xmlns:di="http://www.nuvizzards.com/schemas/deliverit/Stops" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.nuvizzards.com/schemas/deliverit/Stops NuvizzDeliveritStops.xsd ">
   <di:DocumentID>DEMO TEMPLATE</di:DocumentID>
   <di:CompanyCode>SKSHIP</di:CompanyCode>
   <di:Stops>
      <di:Stop>
         <di:Function>01</di:Function>
         <di:StopNbr>test_06_08_18_1</di:StopNbr>
         <di:StopSeq>1</di:StopSeq>
         <di:ShipToName>ANDY MURRAY</di:ShipToName>
         <di:ShipToAddr1>1000 circle 75 pkwy</di:ShipToAddr1>
         <di:ShipToCity>Atlanta</di:ShipToCity>
         <di:ShipToState>GA</di:ShipToState>
         <di:ShipToZip>30339</di:ShipToZip>
         <di:ShipToCountry>USA</di:ShipToCountry>
         <di:SignatureRequired>FALSE</di:SignatureRequired>
      </di:Stop>
   </di:Stops>
</di:DeliverItStops>

XSD schema document for inbound Load integration

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0">
   <xs:complexType name="load">
      <xs:sequence>
         <xs:element name="extendedEntities" type="entity" nillable="true" minOccurs="0" maxOccurs="unbounded" />
         <xs:element name="loadAssignment" type="loadAssignment" minOccurs="0" />
         <xs:element name="loadHeader" type="loadHeader" minOccurs="0" />
         <xs:element name="stops" type="stop" nillable="true" minOccurs="0" maxOccurs="unbounded" />
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="entity">
      <xs:sequence>
         <xs:element name="entityName" type="xs:string" minOccurs="0" />
         <xs:element name="entityRows" type="entityRow" nillable="true" minOccurs="0" maxOccurs="unbounded" />
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="entityRow">
      <xs:sequence>
         <xs:element name="customAttributes" type="customAttribute" nillable="true" minOccurs="0" maxOccurs="unbounded" />
         <xs:element name="documents" type="diDocument" nillable="true" minOccurs="0" maxOccurs="unbounded" />
         <xs:element name="entityGUID" type="xs:string" minOccurs="0" />
         <xs:element name="keyAttribute" type="xs:string" minOccurs="0" />
         <xs:element name="keyAttributeValue" type="xs:string" minOccurs="0" />
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="customAttribute">
      <xs:sequence>
         <xs:element name="keyField" type="xs:string" minOccurs="0" />
         <xs:element name="keyValue" type="xs:string" minOccurs="0" />
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="diDocument">
      <xs:sequence>
         <xs:element name="description" type="xs:string" minOccurs="0" />
         <xs:element name="dispositionType" type="xs:string" minOccurs="0" />
         <xs:element name="docSignatories" type="diDocSignatory" nillable="true" minOccurs="0" maxOccurs="unbounded" />
         <xs:element name="documentCategory" type="xs:string" minOccurs="0" />
         <xs:element name="documentData" type="xs:base64Binary" minOccurs="0" />
         <xs:element name="documentDataStr" type="xs:string" minOccurs="0" />
         <xs:element name="documentExtType" type="xs:string" minOccurs="0" />
         <xs:element name="documentName" type="xs:string" minOccurs="0" />
         <xs:element name="documentType" type="xs:string" minOccurs="0" />
         <xs:element name="documentURL" type="xs:string" minOccurs="0" />
         <xs:element name="reference" type="xs:string" minOccurs="0" />
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="diDocSignatory">
      <xs:sequence>
         <xs:element name="optional" type="xs:string" minOccurs="0" />
         <xs:element name="role" type="xs:string" minOccurs="0" />
         <xs:element name="signatoryName" type="xs:string" minOccurs="0" />
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="loadAssignment">
      <xs:sequence>
         <xs:element name="assignedByCompanyCode" type="xs:string" minOccurs="0" />
         <xs:element name="assignmentCriteria" type="xs:string" minOccurs="0" />
         <xs:element name="carrierCode" type="xs:string" minOccurs="0" />
         <xs:element name="driverCdl" type="xs:string" minOccurs="0" />
         <xs:element name="driverEmail" type="xs:string" minOccurs="0" />
         <xs:element name="driverName" type="xs:string" minOccurs="0" />
         <xs:element name="loadSeq" type="xs:int" minOccurs="0" />
         <xs:element name="sequenceOverridable" type="xs:boolean" minOccurs="0" />
         <xs:element name="stopGeofenceRadius" type="xs:double" minOccurs="0" />
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="loadHeader">
      <xs:sequence>
         <xs:element name="appointmentType" type="xs:string" minOccurs="0" />
         <xs:element name="assignmentType" type="xs:string" minOccurs="0" />
         <xs:element name="comments" type="commentType" nillable="true" minOccurs="0" maxOccurs="unbounded" />
         <xs:element name="customAttributes" type="customAttribute" nillable="true" minOccurs="0" maxOccurs="unbounded" />
         <xs:element name="customerId" type="xs:int" minOccurs="0" />
         <xs:element name="documents" type="diDocument" nillable="true" minOccurs="0" maxOccurs="unbounded" />
         <xs:element name="earliestStartDt" type="xs:string" minOccurs="0" />
         <xs:element name="earliestStartDttm" type="xs:dateTime" minOccurs="0" />
         <xs:element name="earliestStartTm" type="xs:string" minOccurs="0" />
         <xs:element name="function" type="xs:string" minOccurs="0" />
         <xs:element name="groupId" type="xs:string" minOccurs="0" />
         <xs:element name="groupSequence" type="xs:string" minOccurs="0" />
         <xs:element name="latestStartDt" type="xs:string" minOccurs="0" />
         <xs:element name="latestStartDttm" type="xs:dateTime" minOccurs="0" />
         <xs:element name="latestStartTm" type="xs:string" minOccurs="0" />
         <xs:element name="loadNbr" type="xs:string" minOccurs="0" />
         <xs:element name="loadType" type="xs:string" minOccurs="0" />
         <xs:element name="masterBol" type="xs:string" minOccurs="0" />
         <xs:element name="origin" type="xs:string" minOccurs="0" />
         <xs:element name="originAddr1" type="xs:string" minOccurs="0" />
         <xs:element name="originAddr2" type="xs:string" minOccurs="0" />
         <xs:element name="originCity" type="xs:string" minOccurs="0" />
         <xs:element name="originCountry" type="xs:string" minOccurs="0" />
         <xs:element name="originLatitude" type="xs:double" minOccurs="0" />
         <xs:element name="originLongitude" type="xs:double" minOccurs="0" />
         <xs:element name="originName" type="xs:string" minOccurs="0" />
         <xs:element name="originPhoneNumber" type="xs:string" minOccurs="0" />
         <xs:element name="originState" type="xs:string" minOccurs="0" />
         <xs:element name="originZip" type="xs:string" minOccurs="0" />
         <xs:element name="preScheduleId" type="xs:int" minOccurs="0" />
         <xs:element name="proNbr" type="xs:string" minOccurs="0" />
         <xs:element name="reference" type="xs:string" minOccurs="0" />
         <xs:element name="reference2" type="xs:string" minOccurs="0" />
         <xs:element name="reference3" type="xs:string" minOccurs="0" />
         <xs:element name="sealNbr" type="xs:string" minOccurs="0" />
         <xs:element name="signatureRequired" type="xs:boolean" minOccurs="0" />
         <xs:element name="stopSeqOrder" type="xs:int" minOccurs="0" />
         <xs:element name="subAccountCode" type="xs:long" minOccurs="0" />
         <xs:element name="subAccountNumber" type="xs:string" minOccurs="0" />
         <xs:element name="totalCartons" type="xs:int" minOccurs="0" />
         <xs:element name="totalPallets" type="xs:int" minOccurs="0" />
         <xs:element name="tractorNbr" type="xs:string" minOccurs="0" />
         <xs:element name="trailerNbr" type="xs:string" minOccurs="0" />
         <xs:element name="trailerSize" type="xs:string" minOccurs="0" />
         <xs:element name="trailerType" type="xs:string" minOccurs="0" />
         <xs:element name="tripSourceAccountId" type="xs:int" minOccurs="0" />
         <xs:element name="volume" type="dimensionType" minOccurs="0" />
         <xs:element name="weight" type="dimensionType" minOccurs="0" />
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="commentType">
      <xs:sequence>
         <xs:element name="comment" type="xs:string" minOccurs="0" />
         <xs:element name="commentType" type="xs:string" minOccurs="0" />
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="dimensionType">
      <xs:sequence>
         <xs:element name="uom" type="xs:string" minOccurs="0" />
         <xs:element name="value" type="xs:double" minOccurs="0" />
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="stop">
      <xs:sequence>
         <xs:element name="accountNumber" type="xs:string" minOccurs="0" />
         <xs:element name="billToAddr1" type="xs:string" minOccurs="0" />
         <xs:element name="billToAddr2" type="xs:string" minOccurs="0" />
         <xs:element name="billToCity" type="xs:string" minOccurs="0" />
         <xs:element name="billToCountry" type="xs:string" minOccurs="0" />
         <xs:element name="billToName" type="xs:string" minOccurs="0" />
         <xs:element name="billToState" type="xs:string" minOccurs="0" />
         <xs:element name="billToZip" type="xs:string" minOccurs="0" />
         <xs:element name="bol" type="xs:string" minOccurs="0" />
         <xs:element name="comments" type="commentType" nillable="true" minOccurs="0" maxOccurs="unbounded" />
         <xs:element name="completionStatus" type="xs:string" minOccurs="0" />
         <xs:element name="customAttributes" type="customAttribute" nillable="true" minOccurs="0" maxOccurs="unbounded" />
         <xs:element name="documents" type="diDocument" nillable="true" minOccurs="0" maxOccurs="unbounded" />
         <xs:element name="earliestStartDt" type="xs:string" minOccurs="0" />
         <xs:element name="earliestStartDttm" type="xs:dateTime" minOccurs="0" />
         <xs:element name="earliestStartTm" type="xs:string" minOccurs="0" />
         <xs:element name="email" type="xs:string" minOccurs="0" />
         <xs:element name="estimatedDuration" type="xs:int" minOccurs="0" />
         <xs:element name="extendedEntities" type="entity" nillable="true" minOccurs="0" maxOccurs="unbounded" />
         <xs:element name="faxNumber" type="xs:string" minOccurs="0" />
         <xs:element name="frieghtTerms" type="xs:string" minOccurs="0" />
         <xs:element name="latestStartDt" type="xs:string" minOccurs="0" />
         <xs:element name="latestStartDttm" type="xs:dateTime" minOccurs="0" />
         <xs:element name="latestStartTm" type="xs:string" minOccurs="0" />
         <xs:element name="latitude" type="xs:double" minOccurs="0" />
         <xs:element name="longitude" type="xs:double" minOccurs="0" />
         <xs:element name="phoneNumber" type="xs:string" minOccurs="0" />
         <xs:element name="proNumber" type="xs:string" minOccurs="0" />
         <xs:element name="reference1" type="xs:string" minOccurs="0" />
         <xs:element name="reference2" type="xs:string" minOccurs="0" />
         <xs:element name="sealNbr" type="xs:string" minOccurs="0" />
         <xs:element name="serviceCategory" type="xs:string" minOccurs="0" />
         <xs:element name="shipToAddr1" type="xs:string" minOccurs="0" />
         <xs:element name="shipToAddr2" type="xs:string" minOccurs="0" />
         <xs:element name="shipToCity" type="xs:string" minOccurs="0" />
         <xs:element name="shipToContactName" type="xs:string" minOccurs="0" />
         <xs:element name="shipToCountry" type="xs:string" minOccurs="0" />
         <xs:element name="shipToLandmark" type="xs:string" minOccurs="0" />
         <xs:element name="shipToName" type="xs:string" minOccurs="0" />
         <xs:element name="shipToState" type="xs:string" minOccurs="0" />
         <xs:element name="shipToZip" type="xs:string" minOccurs="0" />
         <xs:element name="shipmentNbr" type="xs:string" minOccurs="0" />
         <xs:element name="signatureRequired" type="xs:boolean" minOccurs="0" />
         <xs:element name="smsNumber" type="xs:string" minOccurs="0" />
         <xs:element name="stopAccessorials" type="accessorial" nillable="true" minOccurs="0" maxOccurs="unbounded" />
         <xs:element name="stopDetails" type="stopDetail" nillable="true" minOccurs="0" maxOccurs="unbounded" />
         <xs:element name="stopNbr" type="xs:string" minOccurs="0" />
         <xs:element name="stopPriority" type="xs:string" minOccurs="0" />
         <xs:element name="stopSeq" type="xs:int" minOccurs="0" />
         <xs:element name="stopType" type="xs:string" minOccurs="0" />
         <xs:element name="totalCartons" type="xs:int" minOccurs="0" />
         <xs:element name="totalPallets" type="xs:int" minOccurs="0" />
         <xs:element name="volume" type="dimensionType" minOccurs="0" />
         <xs:element name="weight" type="dimensionType" minOccurs="0" />
         <xs:element name="workType" type="xs:string" minOccurs="0" />
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="accessorial">
      <xs:sequence>
         <xs:element name="code" type="xs:string" minOccurs="0" />
         <xs:element name="comments" type="xs:string" minOccurs="0" />
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="stopDetail">
      <xs:sequence>
         <xs:element name="accountNumber" type="xs:string" minOccurs="0" />
         <xs:element name="confirmationType" type="xs:string" minOccurs="0" />
         <xs:element name="customAttributes" type="customAttribute" nillable="true" minOccurs="0" maxOccurs="unbounded" />
         <xs:element name="lineType" type="xs:string" minOccurs="0" />
         <xs:element name="product" type="xs:string" minOccurs="0" />
         <xs:element name="productIdentifer" type="xs:string" minOccurs="0" />
         <xs:element name="quantity" type="dimensionType" minOccurs="0" />
         <xs:element name="referenceText" type="xs:string" minOccurs="0" />
         <xs:element name="serviceCategory" type="xs:string" minOccurs="0" />
         <xs:element name="stopDetailSeq" type="xs:int" minOccurs="0" />
         <xs:element name="updatedProductIdentifer" type="xs:string" minOccurs="0" />
         <xs:element name="volume" type="dimensionType" minOccurs="0" />
         <xs:element name="weight" type="dimensionType" minOccurs="0" />
      </xs:sequence>
   </xs:complexType>
</xs:schema>

Sample Load web service response XSD schema definition

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0">
   <xs:complexType name="deliverItLoadResponse">
      <xs:sequence>
         <xs:element name="documentId" type="xs:string" minOccurs="0" />
         <xs:element name="errors" type="errorType" nillable="true" minOccurs="0" maxOccurs="unbounded" />
         <xs:element name="identifiers" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded" />
         <xs:element name="partnerCode" type="xs:string" minOccurs="0" />
         <xs:element name="result" type="responseResultType" minOccurs="0" />
         <xs:element name="status" type="xs:int" minOccurs="0" />
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="errorType">
      <xs:sequence>
         <xs:element name="errorCode" type="xs:string" minOccurs="0" />
         <xs:element name="errorDescription" type="xs:string" minOccurs="0" />
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="responseResultType">
      <xs:sequence>
         <xs:element name="recordsCreated" type="xs:int" minOccurs="0" />
         <xs:element name="recordsDeleted" type="xs:int" minOccurs="0" />
         <xs:element name="recordsUpdated" type="xs:int" minOccurs="0" />
      </xs:sequence>
   </xs:complexType>
</xs:schema>