title: eBay SDK get item in JSON using c#
body: <p>need item in JSON using c# from ebay sdk</p>
  
  <p>here is python code which does the same thing</p>
  
  <pre><code>import pyodbc
  import requests, json, re
  server=r"DRIVER={SQL Server Native Client 11.0};Trusted_Connection=yes; SERVER=WIN- 
  JA0M2L5D05K\ECOM;DATABASE=ebay; UID=sa; PASSWORD=1"
  conn = pyodbc.connect(server)
  params = (
  ('callname', 'GetSingleItem'),
  ('responseencoding', 'JSON'),
  ('appid', 'abc'),
  ('siteid', '77'),
  ('version', '967'),
  ('ItemID', '111859090492'),
  ('IncludeSelector', 'Variations,ItemSpecifics,Details,Description,VariationSpecifics'),
  )
  response = requests.get('http://open.api.ebay.com/shopping';, params=params, verify=False)
  x = json.dumps(json.JSONDecoder().decode(response.text))
  conn = pyodbc.connect(server)
  ccc = conn.cursor()
  x=ccc.execute(""" INSERT INTO [ebay].[dbo].[ee] (json) VALUES (?) """,x)
  conn.commit()
  print(x)
  </code></pre>
  
  <p>I have done this but its throwing excepthin with the result </p>
  
  <pre><code>    static void Main(string[] args)
      {
  
          // create a new service
          Shopping svc = new Shopping();
          // set the URL and it's parameters
          // Note: appid will go here,
          svc.Url = "http://open.api.ebay.com/shopping?appid=YOUR-ID&amp;version=969&amp;siteid=0&amp;callname=GetSingleItem&amp;responseencoding=JSON";
          // create a new request type
          GetSingleItemRequestType request = new GetSingleItemRequestType();
          request.ItemID = "111859090492";
          request.IncludeSelector = "Variations,ItemSpecifics,Details,Description,VariationSpecifics";
  
          // create a new response type
          GetSingleItemResponseType response = new GetSingleItemResponseType();
  
          try
          {
              // make the call
              response = svc.GetSingleItem(request);
          }
          catch (Exception ex)
          {
              // catch generic exception
              Console.WriteLine(ex.Message);  
              Console.ReadKey();           
              return;
          }
          Console.WriteLine(response);
          Console.ReadKey();
      }
  </code></pre>
  
  <p>the catch block give the result which i nee but it has this error before the actual result </p>
  
  <p>Client found response content type of 'text/plain;charset=utf-8', but expected 'text/xml'.
  The request failed with the error message:</p>