title: Magento Web Service Errors
body: <p>I am implementing a custom solution to interface with a <a href="http://www.magentocommerce.com" rel="nofollow noreferrer">Magento</a> website. My code is in C#. I am trying to create products using either the <code>v2_soap API</code> and the <code>xml-rpc API</code> web services. I have attempted to create a product using both services. I cannot seem to successfully create a product. With each service I receive the error message  <code>[102] Invalid data given. Details in error message.</code>. I have tried passing in a variety of data to the api call, but have not had any luck. I am wondering a few things:</p>
  
  <p>1) Is there any way to recieve better error messages about what data is not valid when I make a web service call? The error message seems to indicate that I can get <code>details</code> somewhere, but I have searched through all logs, error message data I can find with no luck.</p>
  
  <p>2) What are the minimum attributes required to add a new product using the web service?</p>
  
  <p>Here is a bit of the code I am using. This is the <code>XML-RPC</code> implementation. I am using the cook computing xml-rpc library.</p>
  
  <pre><code>public int CreateProduct(Product product) {
      var entity = ConvertProduct(product);
      //int productId = Service.catalogProductCreate(SessionId, "simple", "0", product.Sku, entity);
      int productId = XmlRpcService.CallReturnInt(SessionId, "catalog_product.create",
        new object[] { 
           "simple" /* product type */, 
           0 /* attribute set */, 
           product.Sku /* sku */, 
           entity /* product data */ 
        });
      return productId;
  }
  private XmlRpcStruct ConvertProduct(Product product) {
      var entity = new XmlRpcStruct();
      entity.Add("name", product.Name);
      entity.Add("description", product.Description);
      return entity;
  }
  protected IMagentoXmlRcpService XmlRpcService {
      get {
          return this.xmlRpcService;
      }
  }
  </code></pre>