title: How to set the HTTP body for a request using AFNetworking?
body: <p>In the early versions of AFNetworking if I had to make my own custom client then I would simply inherit from AFHTTPClient and create my methods. In AFNetworking 2.0 I believe I need to inherit from AFHTTPSessionManager. </p>
  
  <pre><code>@interface MyCustomClient : AFHTTPSessionManager
      {
  
      }
  </code></pre>
  
  <p>In my situation I need to send in request as soap. This means that HTTP Body will be soap and HTTP HEADERS will be text/xml. </p>
  
  <p>Let's say I have a variable which contains the entire soap body I need to send to the server. </p>
  
  <pre><code>NSString *soapBody = @"Soap body";
  </code></pre>
  
  <p>Using my custom class defined above which inherits from AFHTTPSessionManager how will I set the soap body to the Request HTTPBody.  </p>
  
  <p>If there is anyway to access NSURLRequest from inside the AFHTTPSessionManager then I can simply do setHTTPBody but it seems there is not? </p>
  
  <p>I hope I am making sense now! </p>