title: SOAP get content type error in AFNetworking
body: <p>I am working with SOAP web service and i get Content-Type error, I try to change type "application/soap+xml; charset=utf-8", "text/xml; charset=utf-8" but the same error occur.</p>
  
  <pre><code>NSString *soapMessage = [NSString stringWithFormat:@"&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;"
                               "&lt;soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"&gt;"
                               "&lt;soap:Body&gt;"
                               "&lt;CelsiusToFahrenheit xmlns=\"http://www.w3schools.com/webservices/\"&gt;"
                               "&lt;Celsius&gt;140.0&lt;/Celsius&gt;"
                               "&lt;/CelsiusToFahrenheit&gt;"
                               "&lt;/soap:Body&gt;"
                               "&lt;/soap:Envelope&gt;"];
      NSString *msgLength = [NSString stringWithFormat:@"%lu", (unsigned long)[soapMessage length]];
  
      NSURL *url = [NSURL URLWithString:@"http://w3schools.com/webservices/tempconvert.asmx"];
  
      NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:url];
      [theRequest addValue: @"text/xml" forHTTPHeaderField:@"Content-Type"];//
      [theRequest addValue: @"application/soap+xml; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
      [theRequest addValue: @"http://www.w3schools.com/webservices/CelsiusToFahrenheit" forHTTPHeaderField:@"SOAPAction"];
      [theRequest addValue: msgLength forHTTPHeaderField:@"Content-Length"];
      [theRequest setHTTPMethod:@"POST"];
      [theRequest setHTTPBody: [soapMessage dataUsingEncoding:NSUTF8StringEncoding]];
      AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:theRequest];
      operation.responseSerializer = [AFXMLParserResponseSerializer serializer];
      [operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {
          //parse NSXMLParser object here if request successfull
          if ([responseObject isKindOfClass:[NSXMLParser class]]) {
              NSXMLParser *parser = (NSXMLParser *)responseObject;
              NSError *error;
              NSDictionary *dict = [XMLReader dictionaryForXMLData:parser error:&amp;error];
              NSLog(@"JSON: %@ : %@", responseObject,dict);
          }
      } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
          NSLog(@"Error: %@", error);
      }];
      [[NSOperationQueue mainQueue] addOperation:operation];
  </code></pre>
  
  <p>and i get following error...</p>
  
  <pre><code>NSLocalizedDescription=Request failed: unacceptable content-type: text/html}
  </code></pre>
  
  <p>I will appreciate your help and advice .Thanks </p>