title: Send request as Json on UWP
body: <p>I have deployed an AzureML published experiment with deployed web service. I tried to use the <a href="https://azure.microsoft.com/en-us/documentation/articles/machine-learning-consume-web-services/" rel="nofollow">sample code provided in the configuration page</a>, but universal apps do not implement Http.Formatting yet, thus I couldn't use <a href="https://msdn.microsoft.com/en-us/library/hh944521(v=vs.118).aspx" rel="nofollow">postasjsonasync</a>.</p>
  
  <p>I tried to follow the sample code as much as possible, but I'm getting statuscode of 415 "Unsupported Media Type", What's the mistake I'm doing?</p>
  
  <pre><code>var client = new HttpClient();
  client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", apiKey);
  // client.BaseAddress = uri;
  
  var scoreRequest = new
  {
              Inputs = new Dictionary&lt;string, StringTable&gt;() {
                      {
                          "dataInput",
                          new StringTable()
                          {
                              ColumnNames = new [] {"Direction", "meanX", "meanY", "meanZ"},
                              Values = new [,] {  { "", x.ToString(), y.ToString(), z.ToString() },  }
                          }
                      },
                  },
              GlobalParameters = new Dictionary&lt;string, string&gt;() { }
   };
   var stringContent = new StringContent(scoreRequest.ToString());
   HttpResponseMessage response = await client.PostAsync(uri, stringContent);
  </code></pre>
  
  <p>Many Thanks</p>