• Welcome to KonaKart Community Forum. Please login or sign up.
 

Error when inserting product with SOAP

Started by David, October 05, 2007, 08:43:52 am

Previous topic - Next topic

David

Hi again,

I'm adding new products to KonaKart throw the WebService API, but I get this error when I try to upload something:

java.rmi.RemoteException: The String parameter called name must be given a value. It cannot be set to null or be left empty

This is part of my code, as you see I insert the parameter called name. I don't know if there is another name I must include:

articulo.setName("Unbelievable");
...
...
...
port.insertProduct(sesion, articulo); ->Error

Thank you in advance

David

paolo

Hi David,

Setting a product name and description is slightly more complicated than it may first appear because KonaKart is multilingual and so accepts names, descriptions and product urls for different languages.

What I suggest is for you to follow the steps in the source code we provide as an example. You can download this from http://www.konakart.com/apiexamplesfaq.php . You will see that there is a java source code file called InsertProduct.java.

Good luck,

Paolo

David

Hi,

finally I put a name for the description and It seems to work, now I don't have that error and the product is in the DB of KonaKart. Anywhere I'll read that examples, they look fine

Thanks paolo