Dispatch (XML)

    contentType = "text/xml";//or application/xml
                postData = "<DispatchSpecification>" +
        "<CurrentTime>0001-01-01T06:00:00</CurrentTime>" +
        "<DispatchMode>TimeWindow</DispatchMode>" +
        "<MinimumOptimization>5</MinimumOptimization>" +
        "<DistanceUnit>Mile</DistanceUnit>" +
        "<Vehicles>" +
          "<Vehicle>" +
            "<Name>Mike</Name>" +
            "<Speed>0</Speed>" +
            "<MaxStops>0</MaxStops>" +
            "<MaxWeight>0</MaxWeight>" +
            "<MaxSkids>0</MaxSkids>" +
            "<MaxVolume>0</MaxVolume>" +
            "<MaxMinutes>0</MaxMinutes>" +
            "<OnTheRoad>false</OnTheRoad>" +
            "<Tin>2013-09-18T08:00:00</Tin>" +
            "<Tin>2013-09-18T17:30:00</Tin>" +
            "<StartLocation>" +
              "<LatLong>" +
                "<Latitude>32.5613100</Latitude>" +
                "<Longitude>-84.9644250</Longitude>" +
              "</LatLong>" +
              "<Priority>0</Priority>" +
              "<Wait>0</Wait>" +
              "<Volume>0</Volume>" +
              "<Weight>0</Weight>" +
              "<Skids>0</Skids>" +
              "<TimeConstraintArrival>0001-01-01T00:00:00</TimeConstraintArrival>" +
              "<TimeConstraintDeparture>0001-01-01T00:00:00</TimeConstraintDeparture>" +
              "<LocationType>Start</LocationType>" +
              "<CanArriveEarly>false</CanArriveEarly>" +
              "<Distance>100</Distance>" +
              "<Time>0</Time>" +
            "</StartLocation>" +
            "<FinishLocation>" +
             "<LatLong>" +
                "<Latitude>32.5273670</Latitude>" +
                "<Longitude>-84.9746670</Longitude>" +
              "</LatLong>" +
              "<Priority>0</Priority>" +
              "<Wait>0</Wait>" +
              "<Volume>0</Volume>" +
              "<Weight>0</Weight>" +
              "<Skids>0</Skids>" +
              "<TimeConstraintArrival>0001-01-01T00:00:00</TimeConstraintArrival>" +
              "<TimeConstraintDeparture>0001-01-01T00:00:00</TimeConstraintDeparture>" +
              "<LocationType>Finish</LocationType>" +
              "<CanArriveEarly>false</CanArriveEarly>" +
              "<Distance>100</Distance>" +
              "<Time>0</Time>" +
            "</FinishLocation>" +
          "</Vehicle>" +
        "</Vehicles>" +
        "<Locations>" +
          "<Location>" +
             "<Name>HCA</Name>" +
            "<LatLong>" +
              "<Latitude>34.2892339</Latitude>" +
              "<Longitude>-83.8191910</Longitude>" +
            "</LatLong>" +
            "<Priority>5</Priority>" +
            "<Wait>0</Wait>" +
            "<Volume>0</Volume>" +
            "<Weight>0</Weight>" +
            "<Skids>0</Skids>" +
            "<TimeConstraintArrival>2013-09-18T08:15:00</TimeConstraintArrival>" +
            "<TimeConstraintDeparture>2013-09-18T08:30:00</TimeConstraintDeparture>" +
            "<LocationType>Midway</LocationType>" +
            "<CanArriveEarly>false</CanArriveEarly>" +
            "<Distance>0</Distance>" +
            "<Time>0</Time>" +
          "</Location>" +
        "</Locations>" +
      "</DispatchSpecification>";
                responseString = CallService(url, postData, contentType);