The only way to achive that is by using the Dieter module XML-RPC:
You will have to :
—use his classes in .NET and
—place some .php inside your Magento. See Dieter pointers on how to do that:
First step is to download the latest version of my MagentoXtender at http://www.linux4ever.be/dokuwiki/doku.php?id=magentoxtender
If you download the .zip file and extract it, you will find inside 2 directories:
- MagentoXtender API Module
Inside the second directory (MagentoXtender API Module) you will find the Module that you need do install on your Magento website. Yust copy the /app directory over your Magento’s /app directory.
I was not able to use SOAP since, I was not able to get around the the fact that Magento sends this “Apache SOAP serialization representation of java.lang.Hashtable” .
I don’t know a way of .NET Soap Client to interop with this data representation. Let me know if one exists.
<xsd:element name="item" minOccurs="0" maxOccurs="unbounded">
<xsd:element name="key" type="xsd:anyType" />
<xsd:element name="value" type="xsd:anyType" />
This web page has same good explanation about this kind of Soap problems:
I don’t think they will have a solution soon, since now if they would like to interop with the .NET Soap Client they would have to change their code and their wsdl, and all existing Soap Clients would have to change their code to conform with the new wdsl.
I started to use Dieter XML-RPC and I was able to successfully create categories (thanks Dieter !!).
But in the end I decided to create a VB class to access directly the MySQL database and insert the data directly.
Is is not pretty (if they change the database structure I will have to change my SQL code), but at least it works and in the end, I believe, it will be cleaner (less code involved).
I have not finished my .NET class , but if you need it please let me know.
Take into account that I will just code enough to get the categories, attributes and products inside the DB.
I hope to finish my code by the end of this week (this means I will be done by the end of next week).