title: Consuming multiple APIs and WebServices using the onion architecture
body: <p>I currently am setup up a Visual Studio solution using the onion architecture. I have a pretty good understanding on how to structure the solution but I am running into a bit of a pickle. My solution is consuming multiple APIs. These API's are consumed using WCF, Soap Web services, and RESTSharp for REST services. I am not sure how to structure this.</p>
  
  <p>The biggest confusion is around REST services since this not only uses RESTSharp but also some POCO classes that are used for serialization. I also have:</p>
  
  <pre><code>ApiResult&lt;T&gt; where T is any of the POCO classes.
  </code></pre>
  
  <p>My first thought was to create Infrastructure.RestSharp where I would implement my interfaces that all have return ApiResult but the questions is where do I put the these POCO classes and the ApiResult? They would have to go in the Core somewhere since the interfaces are using them, but where would be a good place to put them?</p>
  
  <p>What about the WCF and soap services? Would I create a Infrastructure.WebServices?</p>