title: DDD object creation design
body: <p>I'm developing a server side application based on DDD.</p>
  
  <p>My application service (wcf layer) has a method which received an XML from the client.
  This XML needs to be processed and finally transformed into an object.</p>
  
  <p>In such a case, where's the best place to put the data transformation logic?
  Inside the domain model?</p>
  
  <p>Example:</p>
  
  <pre><code>void OnRequestArrived(string xml)
  {
     ItemRequest request = ItemRequest.New(xml);
  }
  </code></pre>
  
  <p>or in a separate domain service?</p>
  
  <pre><code>void OnRequestArrived(string xml)
  {
    ItemRequest request = _mappingService.Map(xml);
  }
  </code></pre>
  
  <p>The ItemRequest object is then the main domain model for the business flow..</p>
  
  <p>Thanks</p>