Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 179479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:24:52+00:00 2026-05-11T14:24:52+00:00

I am implementing a custom solution to interface with a Magento website. My code

  • 0

I am implementing a custom solution to interface with a Magento website. My code is in C#. I am trying to create products using either the v2_soap API and the xml-rpc API 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 [102] Invalid data given. Details in error message.. 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:

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 details somewhere, but I have searched through all logs, error message data I can find with no luck.

2) What are the minimum attributes required to add a new product using the web service?

Here is a bit of the code I am using. This is the XML-RPC implementation. I am using the cook computing xml-rpc library.

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;     } } 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T14:24:52+00:00Added an answer on May 11, 2026 at 2:24 pm

    The key was the attribute set. The default attribute set is 4 (at least for me). That little guy is the root of a lot of problems. The error responses on the Magento web services could really use some work.

    See this forum thread for more info: http://www.magentocommerce.com/boards/viewthread/36892/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 111k
  • Answers 111k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer To get the component parts of the date, you can… May 11, 2026 at 9:41 pm
  • Editorial Team
    Editorial Team added an answer The only way to stop this is to make one… May 11, 2026 at 9:41 pm
  • Editorial Team
    Editorial Team added an answer The wrapping is right (in principle) but in AAF(10, [4,… May 11, 2026 at 9:41 pm

Related Questions

I am struggling with the best way to handle a WPF application that has
I'm using a remote 3rd party storage solution that does not have support for
I am implementing a tree think of it as a folder structure so I
I want to send emails in HTML format. How can I use asp.net to

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.