title: Send a XML request using jQuery
body: <p>I want to communicate with the UPS API via jQuery and AJAX. The XML seems to be well formed, as it works fine in a similar ASP script. But I figured I would skip the ASP script and communicate directly with UPS via jQuery. However, when I send the request, the response comes up as:</p>
  
  <p>METHOD: OPTIONS<br>
  Status: Load Cancelled</p>
  
  <p>I assume I missed some kind of option in the ajax request that tells it to send the xml to the UPS server.</p>
  
  <pre><code>    $(document).ready(function() {
              $.ajax({ type: "POST",
                              url: "https://wwwcie.ups.com/ups.app/xml/XAV",
                              data: "&lt;?xml version=1.0?&gt;" + 
                                  "   &lt;AccessRequest xml:lang='en-US'&gt;" +
                                  "       &lt;AccessLicenseNumber&gt;LICENSENUMBER&lt;/AccessLicenseNumber&gt;" +
                                  "       &lt;UserId&gt;USER&lt;/UserId&gt;" +
                                  "       &lt;Password&gt;PASS&lt;/Password&gt;" +
                                  "   &lt;/AccessRequest&gt;" +
                                  "   &lt;?xml version=1.0?&gt;" +
                                  "   &lt;AddressValidationRequest xml:lang='en-US'&gt;" +
                                  "       &lt;Request&gt;" +
                                  "           &lt;TransactionReference&gt;" +
                                  "               &lt;CustomerContext&gt;AddressValidationRequest&lt;/CustomerContext&gt;" +
                                  "               &lt;XpciVersion&gt;1.0&lt;/XpciVersion&gt;" +
                                  "           &lt;/TransactionReference&gt;" +
                                  "           &lt;RequestAction&gt;XAV&lt;/RequestAction&gt;" +
                                  "           &lt;RequestOption&gt;3&lt;/RequestOption&gt;" +
                                  "       &lt;/Request&gt;" +
                                  "       &lt;AddressKeyFormat&gt;" +
                                  "           &lt;AddressLine&gt;1234 N. Main Street&lt;/AddressLine&gt;" +
                                  "           &lt;PoliticalDivision2&gt;Los Angeles&lt;/PoliticalDivision2&gt;" +
                                  "           &lt;PoliticalDivision1&gt;CA&lt;/PoliticalDivision1&gt;" +
                                  "           &lt;PostcodePrimaryLow&gt;90210&lt;/PostcodePrimaryLow&gt;" +
                                  "           &lt;CountryCode&gt;US&lt;/CountryCode&gt;" +
                                  "       &lt;/AddressKeyFormat&gt;" +
                                  "   &lt;/AddressValidationRequest&gt;", 
                              contentType: "text/xml",
                              dataType: "xml",
                              cache: false,
                              error: function() { alert("No data found."); },
                              success: function(xml) {
                                  alert("it works");
                                  alert($(xml).find("project")[0].attr("id"));
                              }
              });
          });
  </code></pre>